Commit 6e08202dad9c52f20cb8482d90acd25fbae0f081
修改编译时间差
Showing
1 changed file
with
5 additions
and
2 deletions
src/js/gbreplayer.js
| @@ -932,6 +932,7 @@ $(function(){ | @@ -932,6 +932,7 @@ $(function(){ | ||
| 932 | dataType: "json", | 932 | dataType: "json", |
| 933 | contentType: "application/json", | 933 | contentType: "application/json", |
| 934 | success: function(data){ | 934 | success: function(data){ |
| 935 | + console.log(data); | ||
| 935 | $(window).unbind('beforeunload'); | 936 | $(window).unbind('beforeunload'); |
| 936 | var _data = { | 937 | var _data = { |
| 937 | "programId": data.codeReplayId, | 938 | "programId": data.codeReplayId, |
| @@ -1396,7 +1397,7 @@ $(function(){ | @@ -1396,7 +1397,7 @@ $(function(){ | ||
| 1396 | var pausetatus = $('#pause').data('status'); | 1397 | var pausetatus = $('#pause').data('status'); |
| 1397 | 1398 | ||
| 1398 | if(_role == 0 && pausetatus == 1){ | 1399 | if(_role == 0 && pausetatus == 1){ |
| 1399 | - intervaltime = (currenttime - GBCodePlayBack.record_continue_time) + (GBCodePlayBack.record_pause_time - GBCodePlayBack.record_startime); | 1400 | + intervaltime = (currenttime - GBCodePlayBack.record_continue_time); |
| 1400 | $('#pause').data('status', '0'); | 1401 | $('#pause').data('status', '0'); |
| 1401 | } | 1402 | } |
| 1402 | 1403 | ||
| @@ -1411,7 +1412,7 @@ $(function(){ | @@ -1411,7 +1412,7 @@ $(function(){ | ||
| 1411 | }; | 1412 | }; |
| 1412 | GBCodePlayBack.records.push(recordobj); | 1413 | GBCodePlayBack.records.push(recordobj); |
| 1413 | GBCodePlayBack.record_startime = currenttime; //设定起始时间 | 1414 | GBCodePlayBack.record_startime = currenttime; //设定起始时间 |
| 1414 | - | 1415 | + console.log(GBCodePlayBack.records); |
| 1415 | }, | 1416 | }, |
| 1416 | changeValueCallback: function(record, replay_type, offset) { | 1417 | changeValueCallback: function(record, replay_type, offset) { |
| 1417 | var obj = record.changeobj, | 1418 | var obj = record.changeobj, |
| @@ -1452,6 +1453,8 @@ $(function(){ | @@ -1452,6 +1453,8 @@ $(function(){ | ||
| 1452 | GBCodePlayBack.triggertotal += 1; | 1453 | GBCodePlayBack.triggertotal += 1; |
| 1453 | } | 1454 | } |
| 1454 | 1455 | ||
| 1456 | + console.log(record); | ||
| 1457 | + | ||
| 1455 | /*计算播放进度*/ | 1458 | /*计算播放进度*/ |
| 1456 | var percertage = '0%', | 1459 | var percertage = '0%', |
| 1457 | percertagenum = 0; | 1460 | percertagenum = 0; |