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,16 +589,21 @@ function getJdCash() {
} }
async function getShareCode() { async function getShareCode() {
console.log(`======账号${$.index}开始======`) console.log(`======账号${$.index}开始======`)
await getJDFruit() try {
await getJdPet() await getJDFruit()
await getPlantBean() await getJdPet()
await getJdFactory() await getPlantBean()
await getJxFactory() await getJdFactory()
await getJdZZ() await getJxFactory()
await getJoy() await getJdZZ()
await getSgmh() await getJoy()
//await getCFD() await getSgmh()
await getJdCash() //await getCFD()
await getJdCash()
} catch (e) {
console.log(e)
}
console.log(`======账号${$.index}结束======\n`) console.log(`======账号${$.index}结束======\n`)
} }