yyds
parent
1f905d8ff1
commit
72715ea994
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue