From 4fb39417df83e55100f071ca3f0c8668d0d4df09 Mon Sep 17 00:00:00 2001 From: Frady Date: Mon, 5 Sep 2022 13:55:40 +0800 Subject: [PATCH] =?UTF-8?q?Update=20jd=5Fget=5Fshare=5Fcode.js=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=94=99=E8=AF=AF=E6=9C=AA=E6=8D=95=E8=8E=B7=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=8E=B7=E5=8F=96=E4=BA=92=E5=8A=A9=E7=A0=81=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E4=B8=AD=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- jd_get_share_code.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/jd_get_share_code.js b/jd_get_share_code.js index 1682b44..94bac0d 100644 --- a/jd_get_share_code.js +++ b/jd_get_share_code.js @@ -589,16 +589,21 @@ function getJdCash() { } async function getShareCode() { console.log(`======账号${$.index}开始======`) - await getJDFruit() - await getJdPet() - await getPlantBean() - await getJdFactory() - await getJxFactory() - await getJdZZ() - await getJoy() - await getSgmh() - //await getCFD() - await getJdCash() + try { + await getJDFruit() + await getJdPet() + await getPlantBean() + await getJdFactory() + await getJxFactory() + await getJdZZ() + await getJoy() + await getSgmh() + //await getCFD() + await getJdCash() + } catch (e) { + console.log(e) + } + console.log(`======账号${$.index}结束======\n`) }