From 72715ea99476b9c6881d33611873142acf03249c Mon Sep 17 00:00:00 2001 From: yyds Date: Fri, 25 Feb 2022 01:28:07 +0800 Subject: [PATCH] yyds --- jd_xinruimz.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jd_xinruimz.js b/jd_xinruimz.js index 0701e57..3a2a5c4 100644 --- a/jd_xinruimz.js +++ b/jd_xinruimz.js @@ -14,6 +14,7 @@ const notify = $.isNode() ? require('./sendNotify') : ''; let cookiesArr = [], cookie = '', message = ''; let waternum = 0; let exfertilizer = true; +let xinruimz = false; if ($.isNode()) { Object.keys(jdCookieNode).forEach((item) => { cookiesArr.push(jdCookieNode[item]) @@ -28,6 +29,9 @@ if ($.isNode()) { cookiesArr.reverse(); cookiesArr = cookiesArr.filter(item => !!item); } +if (process.env.xinruimz && process.env.xinruimz != "") { + xinruimz = process.env.xinruimz; +} !(async () => { if (!cookiesArr[0]) { $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { "open-url": "https://bean.m.jd.com/bean/signIndex.action" }); @@ -35,6 +39,12 @@ if ($.isNode()) { } UUID = getUUID('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); for (let i = 0; i < cookiesArr.length; i++) { + if (xinruimz) { + console.log('执行颜究种植园') + } else { + console.log('不执行颜究种植园 请设置环境变量 xinruimz ture') + break; + } UA = `jdapp;iPhone;10.1.6;13.5;${UUID};network/wifi;model/iPhone11,6;addressid/4596882376;appBuild/167841;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1`; if (cookiesArr[i]) { cookie = cookiesArr[i];