Update jd_get_share_code.js 修复错误未捕获导致获取互助码任务中断

TypeError: Cannot read properties of undefined (reading 'jwordShareInfo')
    at jdPlantBean (/ql/scripts/shufflewzc_faker2_main/jd_get_share_code.js:353:52)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async getPlantBean (/ql/scripts/shufflewzc_faker2_main/jd_get_share_code.js:364:3)
    at async getShareCode (/ql/scripts/shufflewzc_faker2_main/jd_get_share_code.js:595:5)
    at async /ql/scripts/shufflewzc_faker2_main/jd_get_share_code.js:54:7
This commit is contained in:
Frady 2022-09-05 13:55:40 +08:00 committed by GitHub
parent 4d3c625415
commit 4fb39417df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,6 +589,7 @@ function getJdCash() {
}
async function getShareCode() {
console.log(`======账号${$.index}开始======`)
try {
await getJDFruit()
await getJdPet()
await getPlantBean()
@ -599,6 +600,10 @@ async function getShareCode() {
await getSgmh()
//await getCFD()
await getJdCash()
} catch (e) {
console.log(e)
}
console.log(`======账号${$.index}结束======\n`)
}