fix(lottery-in-nodejs.js): [29:28]

This commit is contained in:
shanmite 2021-04-18 20:39:01 +08:00
parent 40ed8a3b6f
commit 3959eae9dc
2 changed files with 2 additions and 1 deletions

View File

@ -193,6 +193,7 @@ class Public {
if (_modify === null) return null;
mDRdata.push.apply(mDRdata, _modify.modifyDynamicResArray);
next_offset = _modify.nextinfo.next_offset;
await Base.delay(500);
}
const fomatdata = mDRdata.map(o => {
const hasOrigin = o.type === 1;

View File

@ -26,7 +26,7 @@ function start() {
return new Promise((_resolve) => {
if (config.create_dy === '1') {
Public.prototype.checkAllDynamic(GlobalVar.myUID, 1).then(Dynamic => {
if (Dynamic.allModifyDynamicResArray[0].type === 1) {
if ((Dynamic.allModifyDynamicResArray[0] || { type: 1 }).type === 1) {
BiliAPI.createDynamic(Base.getRandomStr(config.dy_contents)).then(_resolve)
} else {
Base.tooltip.log('已有一条非转发动态故无需创建');