From d69797dce50a97cd948304eec67563a1234704c8 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Sun, 20 Dec 2020 20:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E8=B5=9A=E8=B5=9A=E8=84=9A?= =?UTF-8?q?=E6=9C=AC(jd=5Fjdzz.js)=E8=84=9A=E6=9C=AC=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E7=9B=B8=E4=BA=92=E5=8A=A9=E5=8A=9B=EF=BC=8C=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F/secret=E5=90=8D=E7=A7=B0=E4=B8=BAJDZZ=5FSHAR?= =?UTF-8?q?ECODES?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- githubAction.md | 1 + jd_jdzz.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/githubAction.md b/githubAction.md index 8d27ea71..63f1d3f9 100644 --- a/githubAction.md +++ b/githubAction.md @@ -112,6 +112,7 @@ | `SUPERMARKET_SHARECODES`| 京小超商圈互助码 | 非必须 | 填写规则请看 [jdSuperMarketShareCodes.js](https://github.com/lxk0301/jd_scripts/blob/master/jdSuperMarketShareCodes.js) 或见下方[互助码的填写规则](#互助码的填写规则) | | `DDFACTORY_SHARECODES`| 东东工厂互助码 | 非必须 | 填写规则请看 [jdFactoryShareCodes.js](https://github.com/lxk0301/jd_scripts/blob/master/jdFactoryShareCodes.js) 或见下方[互助码的填写规则](#互助码的填写规则) | | `DREAM_FACTORY_SHARE_CODES`| 京喜工厂互助码 | 非必须 | 填写规则请看 [jdDreamFactoryShareCodes.js](https://github.com/lxk0301/jd_scripts/blob/master/jdDreamFactoryShareCodes.js) 或见下方[互助码的填写规则](#互助码的填写规则) | +| `JDZZ_SHARECODES` | 京东赚赚(jd_jdzz.js)脚本互助码 | 非必须 | 填写规则和上面类似,或见下方[互助码的填写规则](#互助码的填写规则) | | `TG_PROXY_HOST` | Telegram 代理的 IP | 非必须 | 代理类型为 http。例子:http代理 http://127.0.0.1:1080 则填写 127.0.0.1 | | `TG_PROXY_PORT` | Telegram 代理的端口 | 非必须 | 例子:http代理 http://127.0.0.1:1080 则填写 1080 | | `MONEY_TREE_SELL_FRUIT` | 摇钱树是否卖出金果 | 非必须 | 控制摇钱树脚本是否自动卖出金果兑换成金币,`true`卖出,`false`不卖出,默认`false` | diff --git a/jd_jdzz.js b/jd_jdzz.js index 68b50c3d..67663eb6 100644 --- a/jd_jdzz.js +++ b/jd_jdzz.js @@ -384,7 +384,7 @@ function requireConfig() { console.log(`开始获取${$.name}配置文件\n`); //Node.js用户请在jdCookie.js处填写京东ck; // TODO 互助 - const shareCodes = []; + const shareCodes = $.isNode() ? process.env.JDZZ_SHARECODES.split('&') : []; console.log(`共${cookiesArr.length}个京东账号\n`); $.shareCodesArr = []; if ($.isNode()) {