mirror of
https://gitee.com/novel_dev_team/novel
synced 2026-07-20 17:52:45 +08:00
修复弹幕console控制台报错
This commit is contained in:
@@ -404,13 +404,14 @@
|
|||||||
if(!eval(localStorage.getItem(isShowKey))){
|
if(!eval(localStorage.getItem(isShowKey))){
|
||||||
clearInterval(schedule);
|
clearInterval(schedule);
|
||||||
}
|
}
|
||||||
|
if(data.length>i) {
|
||||||
currentCreateTime = new Date(data[i].createTime).getTime();
|
currentCreateTime = new Date(data[i].createTime).getTime();
|
||||||
if(lastCreateTime && currentCreateTime-lastCreateTime>60000 && sllepTime <= 3000){
|
if (lastCreateTime && currentCreateTime - lastCreateTime > 60000 && sllepTime <= 3000) {
|
||||||
if(sllepTime==3000) {
|
if (sllepTime == 3000) {
|
||||||
lastCreateTime = currentCreateTime;
|
lastCreateTime = currentCreateTime;
|
||||||
}
|
}
|
||||||
sllepTime+=3000;
|
sllepTime += 3000;
|
||||||
}else{
|
} else {
|
||||||
sllepTime = 0;
|
sllepTime = 0;
|
||||||
var bullet = data[i].screenBullet;
|
var bullet = data[i].screenBullet;
|
||||||
// 创建弹幕
|
// 创建弹幕
|
||||||
@@ -420,6 +421,7 @@
|
|||||||
i++;
|
i++;
|
||||||
lastCreateTime = currentCreateTime;
|
lastCreateTime = currentCreateTime;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user