From 88b0683345a31e92df1f21a1aab69adc9d8bbf10 Mon Sep 17 00:00:00 2001 From: wisz2021 Date: Thu, 3 Jun 2021 11:44:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=AD=E5=A5=96=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_mohe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jd_mohe.js b/jd_mohe.js index 434f5d7b..caa195dc 100644 --- a/jd_mohe.js +++ b/jd_mohe.js @@ -393,7 +393,7 @@ async function getAward() { console.log(`====抽奖结果====,${JSON.stringify(lotteryRes.data)}`); console.log(lotteryRes.data.name); console.log(lotteryRes.data.beanNum); - if ((lotteryRes.data['prizeId'] && lotteryRes.data['prizeId'] !== '9999') || lotteryRes.data.name !== '未中奖') { + if (lotteryRes.data['prizeId'] && (lotteryRes.data['type'] !== '99' && lotteryRes.data['type'] !== '3' && lotteryRes.data['type'] !== '8' && lotteryRes.data['type'] !== '9')) { message += `抽奖获得:${lotteryRes.data.name}\n`; } } else if (lotteryRes.code === 4001) {