KingRan 2022-03-02 18:25:12 +08:00
parent 17cd72d1c3
commit c4abdedc38
1 changed files with 7 additions and 3 deletions

View File

@ -157,11 +157,15 @@ function doTask(taskId) {
console.log(`${$.name} API请求失败请检查网路重试`)
} else {
data = JSON.parse(data.match(/query\((.*)\n/)[1])
if (data.errcode === 8004) {
console.log(`任务完成失败无效任务ID`)
} else {
if (data.data.complete_task_list.includes(taskId)) {
console.log(`任务完成成功,当前幸运值${data.data.curbless}`)
$.userInfo.bless = data.data.curbless
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {