Merge pull request from immafrady/patch-2

Update jd_get_share_code.js 修复错误未捕获导致获取互助码任务中断
This commit is contained in:
Faker 2022-09-05 14:44:28 +08:00 committed by GitHub
commit 0a5eecfdf1
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`)
} }