mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix(lottery-in-nodejs.js): [29:28]
This commit is contained in:
parent
40ed8a3b6f
commit
3959eae9dc
@ -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;
|
||||
|
||||
@ -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('已有一条非转发动态故无需创建');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user