mirror of https://github.com/KingRan/KR.git
parent
17cd72d1c3
commit
c4abdedc38
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue