From de40ccab36efb0208c20eb1cbaa7e977078ae3a4 Mon Sep 17 00:00:00 2001 From: 0xff1 <74048348+0xff1@users.noreply.github.com> Date: Sun, 22 Nov 2020 16:42:13 +0800 Subject: [PATCH] Update jd_superMarket.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix:修复东东超市环境变量 SUPERMARKET_LOTTERY 未被正确读取的BUG. --- jd_superMarket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jd_superMarket.js b/jd_superMarket.js index eb0b15c..0df2a8f 100644 --- a/jd_superMarket.js +++ b/jd_superMarket.js @@ -112,8 +112,8 @@ function showMsg() { async function drawLottery() { console.log(`\n注意⚠:京小超抽奖已改版,花费500蓝币抽奖一次,现在脚本默认已关闭抽奖功能\n`); drawLotteryFlag = $.getdata('jdSuperMarketLottery') ? $.getdata('jdSuperMarketLottery') : drawLotteryFlag; - if ($.isNode() && process.env.jdSuperMarketLottery) { - drawLotteryFlag = process.env.jdSuperMarketLottery; + if ($.isNode() && process.env.SUPERMARKET_LOTTERY) { + drawLotteryFlag = process.env.SUPERMARKET_LOTTERY; } if (`${drawLotteryFlag}` === 'true') { const smtg_lotteryIndexRes = await smtg_lotteryIndex();