代码拉取完成,页面将自动刷新
/*
10.20~11.3 惠聚京东 好物连连 [gua_opencard48.js]
新增开卡脚本 (脚本已加密
一次性脚本
1.邀请一人20豆
2.开7张 成功开1张 获得1次抽奖
抽奖可能获得5/666京豆
3.关注5豆
4.加购0京豆 1次游戏机会
(默认不加购 如需加购请设置环境变量[guaopencard_addSku48]为"true"
5.浏览商品0豆 2次游戏机会
6.抽奖 (默认不抽奖 如需抽奖请设置环境变量[guaopencard_draw48]为"3"
填写要抽奖的次数 不足已自身次数为准
guaopencard_draw48="3"
填非数字会全都抽奖
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard48="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait48="0"
All变量适用
————————————————
入口:[ 10.20~11.3 惠聚京东 好物连连 (https://lzdz1-isv.isvjcloud.com/dingzhi/customized/common/activity?activityId=llk20211020&shareUuid=3022dfd1f3eb440c956eb4e77f8c2b12)]
请求太频繁会被黑ip
过10分钟再执行
============Quantumultx===============
[task_local]
#10.20~11.3 惠聚京东 好物连连
47 5 1-3,20-31 10,11 * https://raw.githubusercontent.com/smiek2121/scripts/master/gua_opencard48.js, tag=10.20~11.3 惠聚京东 好物连连, enabled=true
*/
let guaopencard_addSku = "false"
let guaopencard = "false"
let guaopenwait = "0"
let guaopencard_draw = "0"
const $ = new Env('10.20~11.3 惠聚京东 好物连连');
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
//IOS等用户直接用NobyDa的jd cookie
var _0xodY='jsjiami.com.v6',_0xa0e4=[_0xodY,'\x69\x73\x4e\x6f\x64\x65','\x6b\x65\x79\x73','\x66\x6f\x72\x45\x61\x63\x68','\x70\x75\x73\x68','\x65\x6e\x76','\x4a\x44\x5f\x44\x45\x42\x55\x47','\x66\x61\x6c\x73\x65','\x6c\x6f\x67','\x67\x65\x74\x64\x61\x74\x61','\x43\x6f\x6f\x6b\x69\x65\x4a\x44','\x43\x6f\x6f\x6b\x69\x65\x4a\x44\x32','\x43\x6f\x6f\x6b\x69\x65\x73\x4a\x44','\x6d\x61\x70','\x63\x6f\x6f\x6b\x69\x65','\x66\x69\x6c\x74\x65\x72','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x61\x64\x64\x53\x6b\x75\x34\x38','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x61\x64\x64\x53\x6b\x75\x5f\x41\x6c\x6c','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x34\x38','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x41\x6c\x6c','\x67\x75\x61\x6f\x70\x65\x6e\x77\x61\x69\x74\x34\x38','\x67\x75\x61\x6f\x70\x65\x6e\x77\x61\x69\x74\x5f\x41\x6c\x6c','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x64\x72\x61\x77\x34\x38','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x64\x72\x61\x77','\x68\x6f\x74\x46\x6c\x61\x67','\x6f\x75\x74\x46\x6c\x61\x67','\x61\x63\x74\x69\x76\x69\x74\x79\x45\x6e\x64','\x74\x72\x75\x65','\u5982\u9700\u6267\u884c\u811a\u672c\u8bf7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\x5b\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x34\x38\x5d\u4e3a\x22\x74\x72\x75\x65\x22','\x6d\x73\x67','\x6e\x61\x6d\x65','\u3010\u63d0\u793a\u3011\u8bf7\u5148\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65\x0a\u76f4\u63a5\u4f7f\u7528\x4e\x6f\x62\x79\x44\x61\u7684\u4eac\u4e1c\u7b7e\u5230\u83b7\u53d6','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x62\x65\x61\x6e\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d\x2f','\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64','\x6c\x6c\x6b\x32\x30\x32\x31\x31\x30\x32\x30','\x73\x68\x61\x72\x65\x55\x75\x69\x64','\x33\x30\x32\x32\x64\x66\x64\x31\x66\x33\x65\x62\x34\x34\x30\x63\x39\x35\x36\x65\x62\x34\x65\x37\x37\x66\x38\x63\x32\x62\x31\x32','\u5165\u53e3\x3a\x0a\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x75\x73\x74\x6f\x6d\x69\x7a\x65\x64\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x3f\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x26\x73\x68\x61\x72\x65\x55\x75\x69\x64\x3d','\x6c\x65\x6e\x67\x74\x68','\x55\x73\x65\x72\x4e\x61\x6d\x65','\x6d\x61\x74\x63\x68','\x69\x6e\x64\x65\x78','\x62\x65\x61\x6e','\x6e\x69\x63\x6b\x4e\x61\x6d\x65','\x0a\x0a\x2a\x2a\x2a\x2a\x2a\x2a\u5f00\u59cb\u3010\u4eac\u4e1c\u8d26\u53f7','\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x0a','\x61\x63\x74\x6f\x72\x55\x75\x69\x64','\u6b64\x69\x70\u5df2\u88ab\u9650\u5236\uff0c\u8bf7\u8fc7\x31\x30\u5206\u949f\u540e\u518d\u6267\u884c\u811a\u672c','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\x68\x61\x73\x45\x6e\x64','\x65\x6e\x64\x54\x69\x6d\x65','\x54\x6f\x6b\x65\x6e','\x50\x69\x6e','\x69\x73\x76\x4f\x62\x66\x75\x73\x63\x61\x74\x6f\x72','\u83b7\u53d6\x5b\x74\x6f\x6b\x65\x6e\x5d\u5931\u8d25\uff01','\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65\u5931\u8d25','\u6d3b\u52a8\u7ed3\u675f','\u6b64\x69\x70\u5df2\u88ab\u9650\u5236\uff0c\u8bf7\u8fc7\x31\x30\u5206\u949f\u540e\u518d\u6267\u884c\u811a\u672c\x0a','\x67\x65\x74\x53\x69\x6d\x70\x6c\x65\x41\x63\x74\x49\x6e\x66\x6f\x56\x6f','\x67\x65\x74\x4d\x79\x50\x69\x6e\x67','\u83b7\u53d6\x5b\x50\x69\x6e\x5d\u5931\u8d25\uff01','\x61\x63\x63\x65\x73\x73\x4c\x6f\x67\x57\x69\x74\x68\x41\x44','\x67\x65\x74\x55\x73\x65\x72\x49\x6e\x66\x6f','\x61\x63\x74\x69\x76\x69\x74\x79\x43\x6f\x6e\x74\x65\x6e\x74','\u83b7\u53d6\u4e0d\u5230\x5b\x61\x63\x74\x6f\x72\x55\x75\x69\x64\x5d\u9000\u51fa\u6267\u884c\uff0c\u8bf7\u91cd\u65b0\u6267\u884c','\x6e\x6f\x77','\x64\x72\x61\x77\x43\x6f\x6e\x74\x65\x6e\x74','\x77\x61\x69\x74','\x6f\x70\x65\x6e\x4c\x69\x73\x74','\x61\x6c\x6c\x4f\x70\x65\x6e\x43\x61\x72\x64','\x69\x6e\x66\x6f','\x63\x68\x65\x63\x6b\x4f\x70\x65\x6e\x43\x61\x72\x64','\u5f00\u5361\u4efb\u52a1','\x6f\x70\x65\x6e\x43\x61\x72\x64','\x73\x74\x61\x74\x75\x73','\x6a\x6f\x69\x6e\x56\x65\x6e\x64\x65\x72\x49\x64','\x76\x65\x6e\x64\x65\x72\x49\x64','\x72\x61\x6e\x64\x6f\x6d','\u5df2\u5168\u90e8\u5f00\u5361','\u5173\u6ce8\x3a\x20','\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70','\x79\x61\x6f\x71\x69\x6e\x67','\u7b7e\u5230\x3a\x20','\x73\x69\x67\x6e','\u52a0\u8d2d\x3a\x20','\x61\x64\x64\x43\x61\x72\x74','\u5982\u9700\u52a0\u8d2d\u8bf7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\x5b\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x61\x64\x64\x53\x6b\x75\x34\x38\x5d\u4e3a\x22\x74\x72\x75\x65\x22','\x72\x75\x6e\x46\x61\x6c\x61\x67','\u6d4f\u89c8\u5546\u54c1\x3a\x20','\x76\x69\x73\x69\x74\x53\x6b\x75','\x76\x69\x73\x69\x74\x53\x6b\x75\x4c\x69\x73\x74','\x67\x6f\x6f\x64\x73\x43\x6f\x64\x65','\x76\x69\x73\x69\x74\x53\x6b\x75\x56\x61\x6c\x75\x65','\x62\x72\x6f\x77\x73\x65\x47\x6f\x6f\x64\x73','\x64\x72\x61\x77\x43\x6f\x75\x6e\x74','\u62bd\u5956\u6b21\u6570\u4e3a\x3a','\u6b21\u62bd\u5956','\x73\x74\x61\x72\x74\x44\x72\x61\x77','\u62bd\u5956\u592a\u591a\u6b21\uff0c\u591a\u4f59\u7684\u6b21\u6570\u8bf7\u518d\u6267\u884c\u811a\u672c','\u5982\u9700\u62bd\u5956\u8bf7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\x5b\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x64\x72\x61\x77\x34\x38\x5d\u4e3a\x22\x33\x22\x20\x33\u4e3a\u6b21\u6570','\x73\x63\x6f\x72\x65','\u503c\x20\u6e38\u620f\x3a','\x70\x6f\x69\x6e\x74','\x67\x65\x74\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x48\x61\x73\x43\x6f\x75\x70\x6f\x6e','\x67\x65\x74\x53\x68\x61\x72\x65\x52\x65\x63\x6f\x72\x64','\u5f53\u524d\u52a9\u529b\x3a','\u540e\u9762\u7684\u53f7\u90fd\u4f1a\u52a9\u529b\x3a','\u4f11\u606f\x31\u5206\u949f\uff0c\u522b\u88ab\u9ed1\x69\x70\u4e86\x0a\u53ef\u6301\u7eed\u53d1\u5c55','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d','\x50\x4f\x53\x54','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d\x2f\x63\x6c\x69\x65\x6e\x74\x2e\x61\x63\x74\x69\x6f\x6e\x3f\x66\x75\x6e\x63\x74\x69\x6f\x6e\x49\x64\x3d\x69\x73\x76\x4f\x62\x66\x75\x73\x63\x61\x74\x6f\x72','\x62\x6f\x64\x79\x3d\x25\x37\x42\x25\x32\x32\x75\x72\x6c\x25\x32\x32\x25\x33\x41\x25\x32\x32\x68\x74\x74\x70\x73\x25\x33\x41\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x25\x32\x32\x25\x32\x43\x25\x32\x32\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x25\x32\x32\x25\x37\x44\x26\x75\x75\x69\x64\x3d\x37\x30\x38\x38\x64\x39\x30\x31\x38\x35\x31\x35\x62\x38\x63\x62\x30\x63\x38\x38\x61\x63\x65\x36\x65\x35\x34\x37\x39\x37\x36\x32\x61\x66\x33\x65\x38\x38\x66\x33\x26\x63\x6c\x69\x65\x6e\x74\x3d\x61\x70\x70\x6c\x65\x26\x63\x6c\x69\x65\x6e\x74\x56\x65\x72\x73\x69\x6f\x6e\x3d\x31\x30\x2e\x31\x2e\x34\x26\x73\x74\x3d\x31\x36\x33\x34\x33\x34\x33\x36\x32\x34\x30\x38\x36\x26\x73\x76\x3d\x31\x32\x30\x26\x73\x69\x67\x6e\x3d\x38\x62\x39\x63\x65\x61\x32\x32\x63\x33\x61\x30\x64\x37\x37\x30\x32\x36\x61\x62\x64\x61\x35\x64\x33\x37\x64\x32\x62\x37\x65\x33','\x2f\x64\x7a\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x67\x65\x74\x53\x69\x6d\x70\x6c\x65\x41\x63\x74\x49\x6e\x66\x6f\x56\x6f','\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x2f\x63\x75\x73\x74\x6f\x6d\x65\x72\x2f\x67\x65\x74\x4d\x79\x50\x69\x6e\x67','\x75\x73\x65\x72\x49\x64\x3d','\x73\x68\x6f\x70\x49\x64','\x26\x74\x6f\x6b\x65\x6e\x3d','\x26\x66\x72\x6f\x6d\x54\x79\x70\x65\x3d\x41\x50\x50','\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x61\x63\x63\x65\x73\x73\x4c\x6f\x67\x57\x69\x74\x68\x41\x44','\x2f\x64\x72\x61\x77\x43\x65\x6e\x74\x65\x72\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x3f\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x76\x65\x6e\x64\x65\x72\x49\x64\x3d','\x26\x63\x6f\x64\x65\x3d\x39\x39\x26\x70\x69\x6e\x3d','\x26\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x26\x70\x61\x67\x65\x55\x72\x6c\x3d','\x26\x73\x75\x62\x54\x79\x70\x65\x3d\x61\x70\x70\x26\x61\x64\x53\x6f\x75\x72\x63\x65\x3d','\x2f\x77\x78\x41\x63\x74\x69\x6f\x6e\x43\x6f\x6d\x6d\x6f\x6e\x2f\x67\x65\x74\x55\x73\x65\x72\x49\x6e\x66\x6f','\x70\x69\x6e\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x2f\x63\x6f\x6e\x74\x65\x6e\x74','\x26\x70\x69\x6e\x3d','\x26\x70\x69\x6e\x49\x6d\x67\x3d','\x61\x74\x74\x72\x54\x6f\x75\x58\x69\x61\x6e\x67','\x26\x6e\x69\x63\x6b\x3d','\x6e\x69\x63\x6b\x6e\x61\x6d\x65','\x26\x63\x6a\x79\x78\x50\x69\x6e\x3d\x26\x63\x6a\x68\x79\x50\x69\x6e\x3d\x26\x73\x68\x61\x72\x65\x55\x75\x69\x64\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x74\x61\x73\x6b\x61\x63\x74\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x64\x72\x61\x77\x43\x6f\x6e\x74\x65\x6e\x74','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x63\x68\x65\x63\x6b\x4f\x70\x65\x6e\x43\x61\x72\x64','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x74\x61\x73\x6b\x2f\x69\x6e\x66\x6f','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x64\x72\x61\x77\x2f\x62\x65\x61\x6e','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x66\x6f\x6c\x6c\x6f\x77\x2f\x73\x68\x6f\x70','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f','\x26\x76\x61\x6c\x75\x65\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x61\x73\x73\x69\x73\x74','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x61\x73\x73\x69\x73\x74\x2f\x73\x74\x61\x74\x75\x73','\x76\x69\x65\x77\x56\x69\x64\x65\x6f','\x74\x6f\x53\x68\x6f\x70','\x61\x64\x64\x53\x6b\x75','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x64\x7a\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x73\x61\x76\x65\x54\x61\x73\x6b','\x74\x6f\x53\x68\x6f\x70\x56\x61\x6c\x75\x65','\x61\x64\x64\x53\x6b\x75\x56\x61\x6c\x75\x65','\x26\x61\x63\x74\x6f\x72\x55\x75\x69\x64\x3d','\x26\x74\x61\x73\x6b\x54\x79\x70\x65\x3d','\x26\x74\x61\x73\x6b\x56\x61\x6c\x75\x65\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x64\x72\x61\x77\x2f\x72\x65\x63\x6f\x72\x64','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x6c\x69\x6e\x6b\x67\x61\x6d\x65\x2f\x68\x65\x6c\x70\x2f\x6c\x69\x73\x74','\x70\x6f\x73\x74','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x74\x6f\x53\x74\x72','\x20\x41\x50\x49\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u8def\u91cd\u8bd5','\x70\x61\x72\x73\x65','\x20\u6267\u884c\u4efb\u52a1\u5f02\u5e38','\x6f\x62\x6a\x65\x63\x74','\x65\x72\x72\x63\x6f\x64\x65','\x74\x6f\x6b\x65\x6e','\x6d\x65\x73\x73\x61\x67\x65','\x69\x73\x76\x4f\x62\x66\x75\x73\x63\x61\x74\x6f\x72\x20','\x72\x65\x73\x75\x6c\x74','\x64\x61\x74\x61','\x65\x72\x72\x6f\x72\x4d\x65\x73\x73\x61\x67\x65','\x73\x65\x63\x72\x65\x74\x50\x69\x6e','\x79\x75\x6e\x4d\x69\x64\x49\x6d\x61\x67\x65\x55\x72\x6c','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x6d\x67\x31\x30\x2e\x33\x36\x30\x62\x75\x79\x69\x6d\x67\x2e\x63\x6f\x6d\x2f\x69\x6d\x67\x7a\x6f\x6e\x65\x2f\x6a\x66\x73\x2f\x74\x31\x2f\x37\x30\x32\x30\x2f\x32\x37\x2f\x31\x33\x35\x31\x31\x2f\x36\x31\x34\x32\x2f\x35\x63\x35\x31\x33\x38\x64\x38\x45\x34\x64\x66\x32\x65\x37\x36\x34\x2f\x35\x61\x31\x32\x31\x36\x61\x33\x61\x35\x30\x34\x33\x63\x35\x64\x2e\x70\x6e\x67','\x61\x63\x74\x69\x76\x69\x74\x79','\x69\x73\x45\x6e\x64','\x61\x63\x74\x6f\x72','\x63\x61\x72\x64\x4c\x69\x73\x74\x31','\x63\x61\x72\x64\x4c\x69\x73\x74\x32','\x63\x61\x72\x64\x4c\x69\x73\x74','\x6f\x70\x65\x6e\x43\x61\x72\x64\x4c\x69\x73\x74','\x6f\x70\x65\x6e\x43\x61\x72\x64\x53\x63\x6f\x72\x65\x31','\x73\x63\x6f\x72\x65\x31','\x6f\x70\x65\x6e\x43\x61\x72\x64\x53\x63\x6f\x72\x65\x32','\x73\x63\x6f\x72\x65\x32','\x64\x72\x61\x77\x53\x63\x6f\x72\x65','\x61\x64\x64\x42\x65\x61\x6e\x4e\x75\x6d','\x61\x64\x64\x50\x6f\x69\x6e\x74','\u6e38\u620f\u673a\u4f1a','\x62\x65\x61\x6e\x4e\x75\x6d\x4d\x65\x6d\x62\x65\x72','\x61\x73\x73\x69\x73\x74\x53\x65\x6e\x64\x53\x74\x61\x74\x75\x73','\x20\u989d\u5916\u83b7\u5f97\x3a','\u70ed\u95e8\u6587\u7ae0','\u6d4f\u89c8\u5e97\u94fa','\u6d4f\u89c8\u5546\u54c1','\x64\x72\x61\x77\x4f\x6b','\x64\x72\x61\x77\x49\x6e\x66\x6f\x54\x79\x70\x65','\u7a7a\u6c14\ud83d\udca8','\u83b7\u5f97\x3a','\u6211\u7684\u5956\u54c1\uff1a','\x72\x65\x63\x6f\x72\x64\x4c\x69\x73\x74','\x69\x6e\x66\x6f\x4e\x61\x6d\x65','\x32\x30\u4eac\u8c46','\x72\x65\x70\x6c\x61\x63\x65','\x69\x6e\x66\x6f\x54\x79\x70\x65','\x76\x61\x6c\x75\x65','\u9080\u8bf7\u597d\u53cb\x28','\x53\x68\x61\x72\x65\x43\x6f\x75\x6e\x74','\x73\x68\x61\x72\x65\x4c\x69\x73\x74','\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x20\u4f60\u9080\u8bf7\u4e86\x3a','\u52a9\u529b\u6210\u529f','\u5df2\u7ecf\u52a9\u529b\u8fc7','\u5df2\u7ecf\u52a9\u529b\u5176\u4ed6\u4eba','\x2d\x3e\x20','\x69\x6e\x64\x65\x78\x4f\x66','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e','\x67\x7a\x69\x70\x2c\x20\x64\x65\x66\x6c\x61\x74\x65\x2c\x20\x62\x72','\x7a\x68\x2d\x63\x6e','\x6b\x65\x65\x70\x2d\x61\x6c\x69\x76\x65','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x78\x2d\x77\x77\x77\x2d\x66\x6f\x72\x6d\x2d\x75\x72\x6c\x65\x6e\x63\x6f\x64\x65\x64','\x58\x4d\x4c\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74','\x52\x65\x66\x65\x72\x65\x72','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x75\x73\x74\x6f\x6d\x69\x7a\x65\x64\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x3f\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x43\x6f\x6f\x6b\x69\x65','\x41\x55\x54\x48\x5f\x43\x5f\x55\x53\x45\x52\x3d','\x67\x65\x74','\x20\x63\x6f\x6f\x6b\x69\x65\x20\x41\x50\x49\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u8def\u91cd\u8bd5','\u6d3b\u52a8\u5df2\u7ed3\u675f','\x68\x65\x61\x64\x65\x72\x73','\x73\x65\x74\x2d\x63\x6f\x6f\x6b\x69\x65','\x53\x65\x74\x2d\x43\x6f\x6f\x6b\x69\x65','\x73\x70\x6c\x69\x74','\x74\x72\x69\x6d','\x4c\x5a\x5f\x54\x4f\x4b\x45\x4e\x5f\x4b\x45\x59\x3d','\x4c\x5a\x5f\x54\x4f\x4b\x45\x4e\x5f\x56\x41\x4c\x55\x45\x3d','\x6c\x7a\x5f\x6a\x64\x70\x69\x6e\x5f\x74\x6f\x6b\x65\x6e\x3d','\x6a\x64\x61\x70\x70\x3b\x69\x50\x68\x6f\x6e\x65\x3b\x31\x30\x2e\x31\x2e\x34\x3b\x31\x33\x2e\x31\x2e\x32\x3b','\x3b\x6e\x65\x74\x77\x6f\x72\x6b\x2f\x77\x69\x66\x69\x3b\x6d\x6f\x64\x65\x6c\x2f\x69\x50\x68\x6f\x6e\x65\x38\x2c\x31\x3b\x61\x64\x64\x72\x65\x73\x73\x69\x64\x2f\x32\x33\x30\x38\x34\x36\x30\x36\x31\x31\x3b\x61\x70\x70\x42\x75\x69\x6c\x64\x2f\x31\x36\x37\x38\x31\x34\x3b\x6a\x64\x53\x75\x70\x70\x6f\x72\x74\x44\x61\x72\x6b\x4d\x6f\x64\x65\x2f\x30\x3b\x4d\x6f\x7a\x69\x6c\x6c\x61\x2f\x35\x2e\x30\x20\x28\x69\x50\x68\x6f\x6e\x65\x3b\x20\x43\x50\x55\x20\x69\x50\x68\x6f\x6e\x65\x20\x4f\x53\x20\x31\x33\x5f\x31\x5f\x32\x20\x6c\x69\x6b\x65\x20\x4d\x61\x63\x20\x4f\x53\x20\x58\x29\x20\x41\x70\x70\x6c\x65\x57\x65\x62\x4b\x69\x74\x2f\x36\x30\x35\x2e\x31\x2e\x31\x35\x20\x28\x4b\x48\x54\x4d\x4c\x2c\x20\x6c\x69\x6b\x65\x20\x47\x65\x63\x6b\x6f\x29\x20\x4d\x6f\x62\x69\x6c\x65\x2f\x31\x35\x45\x31\x34\x38\x3b\x73\x75\x70\x70\x6f\x72\x74\x4a\x44\x53\x48\x57\x4b\x2f\x31','\x61\x62\x63\x64\x65\x66\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39','\x63\x68\x61\x72\x41\x74','\x66\x6c\x6f\x6f\x72','\x46\x4e\x6a\x73\x6a\x62\x69\x61\x49\x62\x53\x6d\x71\x69\x2e\x63\x70\x4a\x57\x6f\x6d\x59\x54\x2e\x76\x44\x36\x62\x3d\x3d'];var _0x434e=function(_0xa54a8d,_0x49ea07){_0xa54a8d=~~'0x'['concat'](_0xa54a8d);var _0x222050=_0xa0e4[_0xa54a8d];return _0x222050;};(function(_0x2b56b4,_0x47316b){var _0xb5ad9c=0x0;for(_0x47316b=_0x2b56b4['shift'](_0xb5ad9c>>0x2);_0x47316b&&_0x47316b!==(_0x2b56b4['pop'](_0xb5ad9c>>0x3)+'')['replace'](/[FNbIbSqpJWYTDb=]/g,'');_0xb5ad9c++){_0xb5ad9c=_0xb5ad9c^0xb002c;}}(_0xa0e4,_0x434e));let cookiesArr=[],cookie='';if($[_0x434e('0')]()){Object[_0x434e('1')](jdCookieNode)[_0x434e('2')](_0x1a997e=>{cookiesArr[_0x434e('3')](jdCookieNode[_0x1a997e]);});if(process[_0x434e('4')][_0x434e('5')]&&process[_0x434e('4')][_0x434e('5')]===_0x434e('6'))console[_0x434e('7')]=()=>{};}else{cookiesArr=[$[_0x434e('8')](_0x434e('9')),$[_0x434e('8')](_0x434e('a')),...jsonParse($[_0x434e('8')](_0x434e('b'))||'\x5b\x5d')[_0x434e('c')](_0x21d9e5=>_0x21d9e5[_0x434e('d')])][_0x434e('e')](_0x468b68=>!!_0x468b68);}guaopencard_addSku=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('f')]?process[_0x434e('4')][_0x434e('f')]:''+guaopencard_addSku:$[_0x434e('8')](_0x434e('f'))?$[_0x434e('8')](_0x434e('f')):''+guaopencard_addSku;guaopencard_addSku=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('10')]?process[_0x434e('4')][_0x434e('10')]:''+guaopencard_addSku:$[_0x434e('8')](_0x434e('10'))?$[_0x434e('8')](_0x434e('10')):''+guaopencard_addSku;guaopencard=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('11')]?process[_0x434e('4')][_0x434e('11')]:''+guaopencard:$[_0x434e('8')](_0x434e('11'))?$[_0x434e('8')](_0x434e('11')):''+guaopencard;guaopencard=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('12')]?process[_0x434e('4')][_0x434e('12')]:''+guaopencard:$[_0x434e('8')](_0x434e('12'))?$[_0x434e('8')](_0x434e('12')):''+guaopencard;guaopenwait=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('13')]?process[_0x434e('4')][_0x434e('13')]:''+guaopenwait:$[_0x434e('8')](_0x434e('13'))?$[_0x434e('8')](_0x434e('13')):''+guaopenwait;guaopenwait=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('14')]?process[_0x434e('4')][_0x434e('14')]:''+guaopenwait:$[_0x434e('8')](_0x434e('14'))?$[_0x434e('8')](_0x434e('14')):''+guaopenwait;guaopenwait=parseInt(guaopenwait,0xa)||0x0;guaopencard_draw=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('15')]?process[_0x434e('4')][_0x434e('15')]:guaopencard_draw:$[_0x434e('8')](_0x434e('15'))?$[_0x434e('8')](_0x434e('15')):guaopencard_draw;guaopencard_draw=$[_0x434e('0')]()?process[_0x434e('4')][_0x434e('16')]?process[_0x434e('4')][_0x434e('16')]:guaopencard_draw:$[_0x434e('8')](_0x434e('16'))?$[_0x434e('8')](_0x434e('16')):guaopencard_draw;allMessage='';message='';$[_0x434e('17')]=![];$[_0x434e('18')]=![];$[_0x434e('19')]=![];let lz_jdpin_token_cookie='';let activityCookie='';!(async()=>{if($[_0x434e('0')]()){if(guaopencard+''!=_0x434e('1a')){console[_0x434e('7')](_0x434e('1b'));}if(guaopencard+''!=_0x434e('1a')){return;}}if(!cookiesArr[0x0]){$[_0x434e('1c')]($[_0x434e('1d')],_0x434e('1e'),_0x434e('1f'),{'open-url':_0x434e('1f')});return;}$[_0x434e('20')]=_0x434e('21');$[_0x434e('22')]=_0x434e('23');console[_0x434e('7')](_0x434e('24')+$[_0x434e('20')]+_0x434e('25')+$[_0x434e('22')]);for(let _0x28d10d=0x0;_0x28d10d<cookiesArr[_0x434e('26')];_0x28d10d++){cookie=cookiesArr[_0x28d10d];if(cookie){$[_0x434e('27')]=decodeURIComponent(cookie[_0x434e('28')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x434e('28')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x434e('29')]=_0x28d10d+0x1;message='';$[_0x434e('2a')]=0x0;$[_0x434e('17')]=![];$[_0x434e('2b')]='';console[_0x434e('7')](_0x434e('2c')+$[_0x434e('29')]+'\u3011'+($[_0x434e('2b')]||$[_0x434e('27')])+_0x434e('2d'));await getUA();await run();if(_0x28d10d==0x0&&!$[_0x434e('2e')])break;if($[_0x434e('18')]||$[_0x434e('19')])break;}}if($[_0x434e('18')]){let _0x54cc74=_0x434e('2f');$[_0x434e('1c')]($[_0x434e('1d')],'',''+_0x54cc74);if($[_0x434e('0')]())await notify[_0x434e('30')](''+$[_0x434e('1d')],''+_0x54cc74);}})()[_0x434e('31')](_0x7f0049=>$[_0x434e('32')](_0x7f0049))[_0x434e('33')](()=>$[_0x434e('34')]());async function run(){try{$[_0x434e('35')]=!![];$[_0x434e('36')]=0x0;lz_jdpin_token_cookie='';$[_0x434e('37')]='';$[_0x434e('38')]='';let _0x2fc7cb=![];await takePostRequest(_0x434e('39'));if($[_0x434e('37')]==''){console[_0x434e('7')](_0x434e('3a'));return;}await getCk();if(activityCookie==''){console[_0x434e('7')](_0x434e('3b'));return;}if($[_0x434e('19')]===!![]){console[_0x434e('7')](_0x434e('3c'));return;}if($[_0x434e('18')]){console[_0x434e('7')](_0x434e('3d'));return;}await takePostRequest(_0x434e('3e'));await takePostRequest(_0x434e('3f'));if(!$[_0x434e('38')]){console[_0x434e('7')](_0x434e('40'));return;}await takePostRequest(_0x434e('41'));await takePostRequest(_0x434e('42'));await takePostRequest(_0x434e('43'));if(!$[_0x434e('2e')]){console[_0x434e('7')](_0x434e('44'));return;}if($[_0x434e('35')]===!![]||Date[_0x434e('45')]()>$[_0x434e('36')]){$[_0x434e('19')]=!![];console[_0x434e('7')](_0x434e('3c'));return;}await takePostRequest(_0x434e('46'));await $[_0x434e('47')](0x3e8);$[_0x434e('48')]=[];$[_0x434e('49')]=![];await takePostRequest(_0x434e('4a'));await takePostRequest(_0x434e('4b'));if($[_0x434e('49')]==![]){console[_0x434e('7')](_0x434e('4c'));for(o of $[_0x434e('48')]){$[_0x434e('4d')]=![];if(o[_0x434e('4e')]==0x0){_0x2fc7cb=!![];$[_0x434e('4f')]=o[_0x434e('50')];await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0xbb8+0xbb8,0xa));await joinShop();await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x3e8+0x3e8,0xa));await takePostRequest(_0x434e('43'));await takePostRequest(_0x434e('46'));await takePostRequest(_0x434e('4b'));await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0xbb8+0x7d0,0xa));}}}else{console[_0x434e('7')](_0x434e('52'));}$[_0x434e('7')](_0x434e('53')+$[_0x434e('54')]);if(!$[_0x434e('54')]&&!$[_0x434e('18')]){_0x2fc7cb=!![];await takePostRequest(_0x434e('54'));await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x7d0+0xbb8,0xa));}$[_0x434e('55')]=![];await takePostRequest('\u9080\u8bf7');if($[_0x434e('55')]){await takePostRequest('\u52a9\u529b');}$[_0x434e('7')](_0x434e('56')+$[_0x434e('57')]);if(!$[_0x434e('57')]&&!$[_0x434e('18')]){_0x2fc7cb=!![];await takePostRequest(_0x434e('57'));await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x7d0+0xbb8,0xa));}$[_0x434e('7')](_0x434e('58')+$[_0x434e('59')]);if(!$[_0x434e('59')]&&!$[_0x434e('18')]){if(guaopencard_addSku+''==_0x434e('1a')){_0x2fc7cb=!![];await takePostRequest(_0x434e('59'));await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x7d0+0xfa0,0xa));}else{console[_0x434e('7')](_0x434e('5a'));}}$[_0x434e('5b')]=!![];$[_0x434e('7')](_0x434e('5c')+$[_0x434e('5d')]);if(!$[_0x434e('5d')]&&!$[_0x434e('18')]){_0x2fc7cb=!![];for(let _0x51f098 of $[_0x434e('5e')]||[]){if($[_0x434e('5b')]==![])break;if(_0x51f098[_0x434e('5f')]&&_0x51f098[_0x434e('4e')]===0x0){$[_0x434e('60')]=_0x51f098[_0x434e('5f')];await takePostRequest(_0x434e('61'));await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0xbb8+0xbb8,0xa));}}}if(guaopencard_draw+''!=='\x30'){$[_0x434e('5b')]=!![];let _0x35df12=parseInt($[_0x434e('62')],0xa);guaopencard_draw=parseInt(guaopencard_draw,0xa);if(_0x35df12>guaopencard_draw)_0x35df12=guaopencard_draw;console[_0x434e('7')](_0x434e('63')+_0x35df12);for(m=0x1;_0x35df12--;m++){console[_0x434e('7')]('\u7b2c'+m+_0x434e('64'));await takePostRequest(_0x434e('65'));if($[_0x434e('5b')]==![])break;if(Number(_0x35df12)<=0x0)break;if(m>=0x1e){console[_0x434e('7')](_0x434e('66'));break;}await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x7d0+0x7d0,0xa));}}else console[_0x434e('7')](_0x434e('67'));if(_0x2fc7cb){await takePostRequest(_0x434e('43'));}console[_0x434e('7')]($[_0x434e('68')]+_0x434e('69')+$[_0x434e('6a')]);await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x3e8+0x7d0,0xa));await takePostRequest(_0x434e('6b'));await takePostRequest(_0x434e('6c'));if($[_0x434e('18')]){console[_0x434e('7')](_0x434e('3d'));return;}console[_0x434e('7')]($[_0x434e('2e')]);console[_0x434e('7')](_0x434e('6d')+$[_0x434e('22')]);if($[_0x434e('29')]==0x1){$[_0x434e('22')]=$[_0x434e('2e')];console[_0x434e('7')](_0x434e('6e')+$[_0x434e('22')]);}await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x3e8+0x1388,0xa));if(_0x2fc7cb)await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x3e8+0x2710,0xa));if(guaopenwait){if($[_0x434e('29')]!=cookiesArr[_0x434e('26')]){console[_0x434e('7')]('\u7b49\u5f85'+guaopenwait+'\u79d2');await $[_0x434e('47')](parseInt(guaopenwait,0xa)*0x3e8);}}else{if($[_0x434e('29')]%0x3==0x0)console[_0x434e('7')](_0x434e('6f'));if($[_0x434e('29')]%0x3==0x0)await $[_0x434e('47')](parseInt(Math[_0x434e('51')]()*0x1388+0xea60,0xa));}}catch(_0x33d91f){console[_0x434e('7')](_0x33d91f);}}async function takePostRequest(_0x55eeb0){if($[_0x434e('18')])return;let _0x15b0bd=_0x434e('70');let _0x2c2b29='';let _0x2c1778=_0x434e('71');let _0xb6a7b4='';switch(_0x55eeb0){case _0x434e('39'):_0x15b0bd=_0x434e('72');_0x2c2b29=_0x434e('73');break;case _0x434e('3e'):_0x15b0bd=_0x15b0bd+_0x434e('74');_0x2c2b29=_0x434e('75')+$[_0x434e('20')];break;case _0x434e('3f'):_0x15b0bd=_0x15b0bd+_0x434e('76');_0x2c2b29=_0x434e('77')+($[_0x434e('78')]||$[_0x434e('50')]||'')+_0x434e('79')+$[_0x434e('37')]+_0x434e('7a');break;case _0x434e('41'):_0x15b0bd=_0x15b0bd+_0x434e('7b');let _0x3be8e7=_0x15b0bd+_0x434e('7c')+$[_0x434e('20')]+_0x434e('25')+$[_0x434e('22')];_0x2c2b29=_0x434e('7d')+($[_0x434e('78')]||$[_0x434e('50')]||'')+_0x434e('7e')+encodeURIComponent($[_0x434e('38')])+_0x434e('7f')+$[_0x434e('20')]+_0x434e('80')+encodeURIComponent(_0x3be8e7)+_0x434e('81');break;case _0x434e('42'):_0x15b0bd=_0x15b0bd+_0x434e('82');_0x2c2b29=_0x434e('83')+encodeURIComponent($[_0x434e('38')]);break;case _0x434e('43'):_0x15b0bd=_0x15b0bd+_0x434e('84');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')])+_0x434e('86')+encodeURIComponent($[_0x434e('87')])+_0x434e('88')+encodeURIComponent($[_0x434e('89')])+_0x434e('8a')+$[_0x434e('22')];break;case _0x434e('46'):_0x15b0bd=_0x15b0bd+_0x434e('8b');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);break;case _0x434e('4b'):_0x15b0bd=_0x15b0bd+_0x434e('8c');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);break;case _0x434e('4a'):_0x15b0bd=_0x15b0bd+_0x434e('8d');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);break;case _0x434e('65'):_0x15b0bd=_0x15b0bd+_0x434e('8e');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);break;case _0x434e('54'):_0x15b0bd=_0x15b0bd+_0x434e('8f');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);break;case _0x434e('57'):case _0x434e('59'):case _0x434e('61'):_0x15b0bd=_0x15b0bd+_0x434e('90')+_0x55eeb0;_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);if(_0x55eeb0==_0x434e('61'))_0x2c2b29+=_0x434e('91')+$[_0x434e('60')];break;case'\u9080\u8bf7':case'\u52a9\u529b':if(_0x55eeb0=='\u52a9\u529b'){_0x15b0bd=_0x15b0bd+_0x434e('92');}else{_0x15b0bd=_0x15b0bd+_0x434e('93');}_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')])+_0x434e('25')+$[_0x434e('22')];break;case _0x434e('94'):case _0x434e('5d'):case _0x434e('95'):case _0x434e('96'):_0x15b0bd=_0x15b0bd+_0x434e('97');let _0x431025='';let _0x46475c='';if(_0x55eeb0==_0x434e('94')){_0x431025=0x1f;_0x46475c=0x1f;}else if(_0x55eeb0==_0x434e('5d')){_0x431025=0x5;_0x46475c=$[_0x434e('60')]||0x5;}else if(_0x55eeb0==_0x434e('95')){_0x431025=0xe;_0x46475c=$[_0x434e('98')]||0xe;}else if(_0x55eeb0==_0x434e('96')){_0x431025=0x2;_0x46475c=$[_0x434e('99')]||0x2;}_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')])+_0x434e('9a')+$[_0x434e('2e')]+_0x434e('9b')+_0x431025+_0x434e('9c')+_0x46475c;break;case _0x434e('6b'):_0x15b0bd=_0x15b0bd+_0x434e('9d');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')])+_0x434e('9a')+$[_0x434e('2e')];break;case _0x434e('6c'):_0x15b0bd=_0x15b0bd+_0x434e('9e');_0x2c2b29=_0x434e('75')+$[_0x434e('20')]+_0x434e('85')+encodeURIComponent($[_0x434e('38')]);break;default:console[_0x434e('7')]('\u9519\u8bef'+_0x55eeb0);}let _0x44183a=getPostRequest(_0x15b0bd,_0x2c2b29,_0x2c1778);return new Promise(async _0x1eb344=>{$[_0x434e('9f')](_0x44183a,(_0x588e2a,_0x243da9,_0x2c4182)=>{try{setActivityCookie(_0x243da9);if(_0x588e2a){if(_0x243da9&&typeof _0x243da9[_0x434e('a0')]!=_0x434e('a1')){if(_0x243da9[_0x434e('a0')]==0x1ed){console[_0x434e('7')](_0x434e('3d'));$[_0x434e('18')]=!![];}}console[_0x434e('7')](''+$[_0x434e('a2')](_0x588e2a,_0x588e2a));console[_0x434e('7')](_0x55eeb0+_0x434e('a3'));}else{dealReturn(_0x55eeb0,_0x2c4182);}}catch(_0x331bce){console[_0x434e('7')](_0x331bce,_0x243da9);}finally{_0x1eb344();}});});}async function dealReturn(_0x5db739,_0xd09cd9){let _0x4bf2bb='';try{if(_0x5db739!=_0x434e('41')||_0x5db739!=_0x434e('46')){if(_0xd09cd9){_0x4bf2bb=JSON[_0x434e('a4')](_0xd09cd9);}}}catch(_0x16c598){console[_0x434e('7')](_0x5db739+_0x434e('a5'));console[_0x434e('7')](_0xd09cd9);$[_0x434e('5b')]=![];}try{switch(_0x5db739){case _0x434e('39'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('a7')]==0x0){if(typeof _0x4bf2bb[_0x434e('a8')]!=_0x434e('a1'))$[_0x434e('37')]=_0x4bf2bb[_0x434e('a8')];}else if(_0x4bf2bb[_0x434e('a9')]){console[_0x434e('7')](_0x434e('aa')+(_0x4bf2bb[_0x434e('a9')]||''));}else{console[_0x434e('7')](_0xd09cd9);}}else{console[_0x434e('7')](_0xd09cd9);}break;case _0x434e('3e'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){if(typeof _0x4bf2bb[_0x434e('ac')][_0x434e('78')]!=_0x434e('a1'))$[_0x434e('78')]=_0x4bf2bb[_0x434e('ac')][_0x434e('78')];if(typeof _0x4bf2bb[_0x434e('ac')][_0x434e('50')]!=_0x434e('a1'))$[_0x434e('50')]=_0x4bf2bb[_0x434e('ac')][_0x434e('50')];}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('3f'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){if(_0x4bf2bb[_0x434e('ac')]&&typeof _0x4bf2bb[_0x434e('ac')][_0x434e('ae')]!=_0x434e('a1'))$[_0x434e('38')]=_0x4bf2bb[_0x434e('ac')][_0x434e('ae')];if(_0x4bf2bb[_0x434e('ac')]&&typeof _0x4bf2bb[_0x434e('ac')][_0x434e('89')]!=_0x434e('a1'))$[_0x434e('89')]=_0x4bf2bb[_0x434e('ac')][_0x434e('89')];}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('42'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){if(_0x4bf2bb[_0x434e('ac')]&&typeof _0x4bf2bb[_0x434e('ac')][_0x434e('af')]!=_0x434e('a1'))$[_0x434e('87')]=_0x4bf2bb[_0x434e('ac')][_0x434e('af')]||_0x434e('b0');}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('43'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){$[_0x434e('36')]=_0x4bf2bb[_0x434e('ac')][_0x434e('36')]||_0x4bf2bb[_0x434e('ac')][_0x434e('b1')][_0x434e('36')]||0x0;$[_0x434e('35')]=_0x4bf2bb[_0x434e('ac')][_0x434e('b2')]||![];$[_0x434e('62')]=_0x4bf2bb[_0x434e('ac')][_0x434e('b3')][_0x434e('62')]||0x0;$[_0x434e('6a')]=_0x4bf2bb[_0x434e('ac')][_0x434e('b3')][_0x434e('6a')]||0x0;$[_0x434e('68')]=_0x4bf2bb[_0x434e('ac')][_0x434e('b3')][_0x434e('68')]||0x0;$[_0x434e('2e')]=_0x4bf2bb[_0x434e('ac')][_0x434e('b3')][_0x434e('2e')]||'';}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('4a'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){$[_0x434e('59')]=_0x4bf2bb[_0x434e('ac')][_0x434e('59')]||![];$[_0x434e('54')]=_0x4bf2bb[_0x434e('ac')][_0x434e('54')]||![];$[_0x434e('57')]=_0x4bf2bb[_0x434e('ac')][_0x434e('57')]||![];$[_0x434e('5d')]=_0x4bf2bb[_0x434e('ac')][_0x434e('5d')]||![];$[_0x434e('5e')]=_0x4bf2bb[_0x434e('ac')][_0x434e('5e')]||[];}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('4b'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){let _0x428934=_0x4bf2bb[_0x434e('ac')][_0x434e('b4')]||[];let _0x542967=_0x4bf2bb[_0x434e('ac')][_0x434e('b5')]||[];let _0x30de70=_0x4bf2bb[_0x434e('ac')][_0x434e('b6')]||[];let _0x1fc23e=_0x4bf2bb[_0x434e('ac')][_0x434e('b7')]||[];$[_0x434e('48')]=[..._0x30de70,..._0x428934,..._0x542967,..._0x1fc23e];$[_0x434e('49')]=_0x4bf2bb[_0x434e('ac')][_0x434e('49')]||![];$[_0x434e('b8')]=_0x4bf2bb[_0x434e('ac')][_0x434e('b9')]||0x0;$[_0x434e('ba')]=_0x4bf2bb[_0x434e('ac')][_0x434e('bb')]||0x0;$[_0x434e('bc')]=_0x4bf2bb[_0x434e('ac')][_0x434e('bc')]||0x0;}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('65'):case _0x434e('54'):case _0x434e('94'):case _0x434e('5d'):case _0x434e('95'):case _0x434e('96'):case _0x434e('57'):case _0x434e('59'):case _0x434e('61'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){if(typeof _0x4bf2bb[_0x434e('ac')]==_0x434e('a6')){let _0x5540bf='';let _0x249973='\u62bd\u5956';if(_0x4bf2bb[_0x434e('ac')][_0x434e('bd')]){_0x5540bf=_0x4bf2bb[_0x434e('ac')][_0x434e('bd')]+'\u4eac\u8c46';}if(_0x4bf2bb[_0x434e('ac')][_0x434e('be')]){_0x5540bf+='\x20'+_0x4bf2bb[_0x434e('ac')][_0x434e('be')]+_0x434e('bf');}if(_0x5db739==_0x434e('54')){_0x249973='\u5173\u6ce8';if(_0x4bf2bb[_0x434e('ac')][_0x434e('c0')]&&_0x4bf2bb[_0x434e('ac')][_0x434e('c1')]){_0x5540bf+=_0x434e('c2')+_0x4bf2bb[_0x434e('ac')][_0x434e('c0')]+'\u4eac\u8c46';}}else if(_0x5db739==_0x434e('96')||_0x5db739==_0x434e('59')){_0x249973='\u52a0\u8d2d';}else if(_0x5db739==_0x434e('94')){_0x249973=_0x434e('c3');}else if(_0x5db739==_0x434e('95')){_0x249973=_0x434e('c4');}else if(_0x5db739==_0x434e('5d')||_0x5db739==_0x434e('61')){_0x249973=_0x434e('c5');}else if(_0x5db739==_0x434e('57')){_0x249973='\u7b7e\u5230';}else{_0x5540bf=_0x4bf2bb[_0x434e('ac')][_0x434e('c6')]==!![]&&(_0x4bf2bb[_0x434e('ac')][_0x434e('c7')]==0x6&&_0x4bf2bb[_0x434e('ac')][_0x434e('1d')]||'')||_0x434e('c8');}if(!_0x5540bf){_0x5540bf=_0x434e('c8');}console[_0x434e('7')](_0x249973+_0x434e('c9')+(_0x5540bf||_0xd09cd9));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else if(_0x4bf2bb[_0x434e('ad')]){$[_0x434e('5b')]=![];console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('6b'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]){console[_0x434e('7')](_0x434e('ca'));let _0x2882c0=0x0;let _0xf3b007=0x0;for(let _0xeeca19 in _0x4bf2bb[_0x434e('ac')][_0x434e('cb')]){let _0x150480=_0x4bf2bb[_0x434e('ac')][_0x434e('cb')][_0xeeca19];if(_0x150480[_0x434e('cc')]==_0x434e('cd')){_0x2882c0++;_0xf3b007=_0x150480[_0x434e('cc')][_0x434e('ce')]('\u4eac\u8c46','');}else{console[_0x434e('7')](''+(_0x150480[_0x434e('cf')]!=0xa&&_0x150480[_0x434e('d0')]&&_0x150480[_0x434e('d0')]+'\x3a'||'')+_0x150480[_0x434e('cc')]);}}if(_0x2882c0>0x0)console[_0x434e('7')](_0x434e('d1')+_0x2882c0+'\x29\x3a'+(_0x2882c0*parseInt(_0xf3b007,0xa)||0x1e)+'\u4eac\u8c46');}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case _0x434e('6c'):if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ab')]&&_0x4bf2bb[_0x434e('ab')]===!![]&&_0x4bf2bb[_0x434e('ac')]){$[_0x434e('d2')]=_0x4bf2bb[_0x434e('ac')][_0x434e('d3')][_0x434e('26')];$[_0x434e('7')](_0x434e('d4')+_0x4bf2bb[_0x434e('ac')][_0x434e('d3')][_0x434e('26')]+'\u4e2a');}else if(_0x4bf2bb[_0x434e('ad')]){console[_0x434e('7')](_0x5db739+'\x20'+(_0x4bf2bb[_0x434e('ad')]||''));}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}break;case'\u9080\u8bf7':case'\u52a9\u529b':if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ac')][_0x434e('4e')]==0xc8){if(_0x5db739=='\u52a9\u529b'){console[_0x434e('7')](_0x434e('d5'));}else{$[_0x434e('55')]=!![];}}else if(_0x4bf2bb[_0x434e('ac')][_0x434e('4e')]==0x69){console[_0x434e('7')](_0x434e('d6'));}else if(_0x4bf2bb[_0x434e('ac')][_0x434e('4e')]==0x68){console[_0x434e('7')](_0x434e('d7'));}else if(_0x4bf2bb[_0x434e('ac')][_0x434e('4e')]==0x65){}else{console[_0x434e('7')](_0xd09cd9);}}else{console[_0x434e('7')](_0x5db739+'\x20'+_0xd09cd9);}case _0x434e('41'):case _0x434e('46'):break;default:console[_0x434e('7')](_0x5db739+_0x434e('d8')+_0xd09cd9);}if(typeof _0x4bf2bb==_0x434e('a6')){if(_0x4bf2bb[_0x434e('ad')]){if(_0x4bf2bb[_0x434e('ad')][_0x434e('d9')]('\u706b\u7206')>-0x1){$[_0x434e('17')]=!![];}}}}catch(_0x4a4be2){console[_0x434e('7')](_0x4a4be2);}}function getPostRequest(_0x4e2866,_0x195987,_0x28f234=_0x434e('71')){let _0x5cac32={'Accept':_0x434e('da'),'Accept-Encoding':_0x434e('db'),'Accept-Language':_0x434e('dc'),'Connection':_0x434e('dd'),'Content-Type':_0x434e('de'),'Cookie':cookie,'User-Agent':$['\x55\x41'],'X-Requested-With':_0x434e('df')};if(_0x4e2866[_0x434e('d9')](_0x434e('70'))>-0x1){_0x5cac32[_0x434e('e0')]=_0x434e('e1')+$[_0x434e('20')]+_0x434e('25')+$[_0x434e('22')];_0x5cac32[_0x434e('e2')]=''+(lz_jdpin_token_cookie&&lz_jdpin_token_cookie||'')+($[_0x434e('38')]&&_0x434e('e3')+$[_0x434e('38')]+'\x3b'||'')+activityCookie;}return{'\x75\x72\x6c':_0x4e2866,'\x6d\x65\x74\x68\x6f\x64':_0x28f234,'\x68\x65\x61\x64\x65\x72\x73':_0x5cac32,'\x62\x6f\x64\x79':_0x195987,'\x74\x69\x6d\x65\x6f\x75\x74':0x7530};}function getCk(){return new Promise(_0x31e918=>{let _0xd392d2={'\x75\x72\x6c':_0x434e('e1')+$[_0x434e('20')]+_0x434e('25')+$[_0x434e('22')],'\x66\x6f\x6c\x6c\x6f\x77\x52\x65\x64\x69\x72\x65\x63\x74':![],'\x68\x65\x61\x64\x65\x72\x73':{'User-Agent':$['\x55\x41']},'\x74\x69\x6d\x65\x6f\x75\x74':0x7530};$[_0x434e('e4')](_0xd392d2,async(_0x3023b0,_0x2f306d,_0x3ae97b)=>{try{if(_0x3023b0){if(_0x2f306d&&typeof _0x2f306d[_0x434e('a0')]!=_0x434e('a1')){if(_0x2f306d[_0x434e('a0')]==0x1ed){console[_0x434e('7')](_0x434e('3d'));$[_0x434e('18')]=!![];}}console[_0x434e('7')](''+$[_0x434e('a2')](_0x3023b0));console[_0x434e('7')]($[_0x434e('1d')]+_0x434e('e5'));}else{let _0x3f1df1=_0x3ae97b[_0x434e('28')](/(活动已经结束)/)&&_0x3ae97b[_0x434e('28')](/(活动已经结束)/)[0x1]||'';if(_0x3f1df1){$[_0x434e('19')]=!![];console[_0x434e('7')](_0x434e('e6'));}setActivityCookie(_0x2f306d);}}catch(_0x152138){$[_0x434e('32')](_0x152138,_0x2f306d);}finally{_0x31e918();}});});}function setActivityCookie(_0x427d5d){let _0x59c0a9='';let _0x5649b3='';let _0x23f41d='';let _0xfefd0d=_0x427d5d&&_0x427d5d[_0x434e('e7')]&&(_0x427d5d[_0x434e('e7')][_0x434e('e8')]||_0x427d5d[_0x434e('e7')][_0x434e('e9')]||'')||'';let _0x1fe0f7='';if(_0xfefd0d){if(typeof _0xfefd0d!=_0x434e('a6')){_0x1fe0f7=_0xfefd0d[_0x434e('ea')]('\x2c');}else _0x1fe0f7=_0xfefd0d;for(let _0x3ae6d1 of _0x1fe0f7){let _0x31cfc4=_0x3ae6d1[_0x434e('ea')]('\x3b')[0x0][_0x434e('eb')]();if(_0x31cfc4[_0x434e('ea')]('\x3d')[0x1]){if(_0x31cfc4[_0x434e('d9')](_0x434e('ec'))>-0x1)_0x59c0a9=_0x31cfc4[_0x434e('ce')](/ /g,'')+'\x3b';if(_0x31cfc4[_0x434e('d9')](_0x434e('ed'))>-0x1)_0x5649b3=_0x31cfc4[_0x434e('ce')](/ /g,'')+'\x3b';if(_0x31cfc4[_0x434e('d9')](_0x434e('ee'))>-0x1)_0x23f41d=''+_0x31cfc4[_0x434e('ce')](/ /g,'')+'\x3b';}}}if(_0x59c0a9&&_0x5649b3)activityCookie=_0x59c0a9+'\x20'+_0x5649b3;if(_0x23f41d)lz_jdpin_token_cookie=_0x23f41d;}async function getUA(){$['\x55\x41']=_0x434e('ef')+randomString(0x28)+_0x434e('f0');}function randomString(_0x155386){_0x155386=_0x155386||0x20;let _0x41285a=_0x434e('f1'),_0x4686a9=_0x41285a[_0x434e('26')],_0x169608='';for(i=0x0;i<_0x155386;i++)_0x169608+=_0x41285a[_0x434e('f2')](Math[_0x434e('f3')](Math[_0x434e('51')]()*_0x4686a9));return _0x169608;};_0xodY='jsjiami.com.v6';
function joinShop() {
if(!$.joinVenderId) return
return new Promise(async resolve => {
$.shopactivityId = ''
await $.wait(1000)
await getshopactivityId()
let activityId = ``
if($.shopactivityId) activityId = `,"activityId":${$.shopactivityId}`
const options = {
url: `https://api.m.jd.com/client.action?appid=jd_shop_member&functionId=bindWithVender&body={"venderId":"${$.joinVenderId}","shopId":"${$.joinVenderId}","bindByVerifyCodeFlag":1,"registerExtend":{},"writeChildFlag":0${activityId},"channel":401}&client=H5&clientVersion=9.2.0&uuid=88888`,
headers: {
'Content-Type': 'text/plain; Charset=UTF-8',
'Origin': 'https://api.m.jd.com',
'Host': 'api.m.jd.com',
'accept': '*/*',
'User-Agent': $.UA,
'content-type': 'application/x-www-form-urlencoded',
'Cookie': cookie
}
}
$.get(options, async (err, resp, data) => {
try {
// console.log(data)
let res = $.toObj(data);
if(typeof res == 'object'){
if(res.success === true){
console.log(res.message)
if(res.result && res.result.giftInfo){
for(let i of res.result.giftInfo.giftList){
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
}
}
}else if(typeof res == 'object' && res.message){
console.log(`${res.message || ''}`)
}else{
console.log(data)
}
}else{
console.log(data)
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function getshopactivityId() {
return new Promise(resolve => {
const options = {
url: `https://api.m.jd.com/client.action?appid=jd_shop_member&functionId=getShopOpenCardInfo&body=%7B%22venderId%22%3A%22${$.joinVenderId}%22%2C%22channel%22%3A401%7D&client=H5&clientVersion=9.2.0&uuid=88888`,
headers: {
'Content-Type': 'text/plain; Charset=UTF-8',
'Origin': 'https://api.m.jd.com',
'Host': 'api.m.jd.com',
'accept': '*/*',
'User-Agent': $.UA,
'content-type': 'application/x-www-form-urlencoded',
'Cookie': cookie
}
}
$.get(options, async (err, resp, data) => {
try {
let res = $.toObj(data);
if(res.success == true){
// console.log($.toStr(res.result))
console.log(`入会:${res.result.shopMemberCardInfo.venderCardName || ''}`)
$.shopactivityId = res.result.interestsRuleList && res.result.interestsRuleList[0] && res.result.interestsRuleList[0].interestsInfo && res.result.interestsRuleList[0].interestsInfo.activityId || ''
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function jsonParse(str) {
if (typeof str == "string") {
try {
return JSON.parse(str);
} catch (e) {
console.log(e);
$.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
return [];
}
}
}
// prettier-ignore
function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。