mirror of https://github.com/KingRan/KR.git
parent
17cd72d1c3
commit
c4abdedc38
10
jd_nzmh.js
10
jd_nzmh.js
|
@ -157,9 +157,13 @@ function doTask(taskId) {
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
data = JSON.parse(data.match(/query\((.*)\n/)[1])
|
data = JSON.parse(data.match(/query\((.*)\n/)[1])
|
||||||
if (data.data.complete_task_list.includes(taskId)) {
|
if (data.errcode === 8004) {
|
||||||
console.log(`任务完成成功,当前幸运值${data.data.curbless}`)
|
console.log(`任务完成失败,无效任务ID`)
|
||||||
$.userInfo.bless = data.data.curbless
|
} else {
|
||||||
|
if (data.data.complete_task_list.includes(taskId)) {
|
||||||
|
console.log(`任务完成成功,当前幸运值${data.data.curbless}`)
|
||||||
|
$.userInfo.bless = data.data.curbless
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue