[京喜农场] 每个用户 cookie 重置 notify 通知开关

This commit is contained in:
guyuexuan
2021-01-14 15:30:06 +08:00
parent 0abe0ac59f
commit ba3acc5cfc

View File

@@ -93,6 +93,7 @@ let assistUserShareCode = 0; // 随机助力用户 share code
$.answer = 0;
$.helpNum = 0;
$.helpSelfNum = 0;
notifyBool = notifyLevel > 0; // 初始化是否推送
await tokenFormat(); // 处理当前账号 token
await shareCodesFormat(); // 处理当前账号 助力码
await jdJXNC(); // 执行当前账号 主代码流程
@@ -112,7 +113,6 @@ function requireConfig() {
return new Promise(resolve => {
$.log('开始获取配置文件\n')
notify = $.isNode() ? require('./sendNotify') : '';
notifyBool = notifyLevel > 0; // 初始化是否推送
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const jdTokenNode = $.isNode() ? require('./jdJxncTokens.js') : '';