forked from amumu2008/scripts-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gua_opencard43.js
144 lines (128 loc) · 49.8 KB
/
gua_opencard43.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
10.11~10.26 惠聚京东 好物连连 [gua_opencard43.js]
新增开卡脚本 (脚本已加密
一次性脚本
1.邀请一人20豆
2.开7张 成功开1张 获得1次抽奖
抽奖可能获得5/666京豆
3.关注5豆
4.加购0京豆 1次游戏机会
(默认不加购 如需加购请设置环境变量[guaopencard_addSku43]为"true"
5.浏览商品0豆 2次游戏机会
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard43="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait43="0"
All变量适用
————————————————
入口:[ 10.11~10.26 惠聚京东 好物连连 (https://lzdz1-isv.isvjcloud.com/dingzhi/customized/common/activity?activityId=llk20211011&shareUuid=4fd72b2ca1a14e75a7b5cb57e0e9d91f)]
请求太频繁会被黑ip
过10分钟再执行
============Quantumultx===============
[task_local]
#10.11~10.26 惠聚京东 好物连连
47 4 11-26 10 * https://raw.githubusercontent.com/smiek2221/scripts/master/gua_opencard43.js, tag=10.11~10.26 惠聚京东 好物连连, enabled=true
*/
let guaopencard_addSku = "false"
let guaopencard = "false"
let guaopenwait = "0"
const $ = new Env('10.11~10.26 惠聚京东 好物连连');
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
//IOS等用户直接用NobyDa的jd cookie
var _0xode='jsjiami.com.v6',_0x2a8b=[_0xode,'\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\x33','\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\x33','\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\x33','\x67\x75\x61\x6f\x70\x65\x6e\x77\x61\x69\x74\x5f\x41\x6c\x6c','\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\x33\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\x31\x31','\x73\x68\x61\x72\x65\x55\x75\x69\x64','\x34\x66\x64\x37\x32\x62\x32\x63\x61\x31\x61\x31\x34\x65\x37\x35\x61\x37\x62\x35\x63\x62\x35\x37\x65\x30\x65\x39\x64\x39\x31\x66','\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\x33\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','\u6b21\u62bd\u5956','\x73\x74\x61\x72\x74\x44\x72\x61\x77','\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\x66\x36\x38\x35\x39\x34\x62\x64\x38\x34\x63\x65\x30\x30\x61\x38\x39\x63\x62\x35\x33\x66\x39\x34\x33\x36\x33\x30\x30\x64\x65\x66\x65\x63\x65\x64\x62\x64\x62\x30\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\x33\x39\x32\x32\x37\x36\x34\x36\x33\x39\x26\x73\x76\x3d\x31\x31\x31\x26\x73\x69\x67\x6e\x3d\x66\x61\x66\x32\x30\x35\x38\x66\x35\x34\x65\x38\x65\x36\x30\x65\x63\x63\x35\x35\x66\x33\x65\x30\x30\x36\x33\x35\x63\x38\x36\x62','\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','\x6a\x41\x51\x73\x6a\x57\x69\x61\x6d\x4f\x58\x72\x68\x45\x41\x69\x64\x2e\x63\x45\x47\x77\x43\x51\x50\x6f\x6d\x2e\x76\x51\x5a\x36\x3d\x3d'];var _0x3a6d=function(_0x50b579,_0x1a4950){_0x50b579=~~'0x'['concat'](_0x50b579);var _0x4606cd=_0x2a8b[_0x50b579];return _0x4606cd;};(function(_0xe884da,_0x5f5d37){var _0x4534d8=0x0;for(_0x5f5d37=_0xe884da['shift'](_0x4534d8>>0x2);_0x5f5d37&&_0x5f5d37!==(_0xe884da['pop'](_0x4534d8>>0x3)+'')['replace'](/[AQWOXrhEAdEGwCQPQZ=]/g,'');_0x4534d8++){_0x4534d8=_0x4534d8^0xadd7e;}}(_0x2a8b,_0x3a6d));let cookiesArr=[],cookie='';if($[_0x3a6d('0')]()){Object[_0x3a6d('1')](jdCookieNode)[_0x3a6d('2')](_0x2e1d0e=>{cookiesArr[_0x3a6d('3')](jdCookieNode[_0x2e1d0e]);});if(process[_0x3a6d('4')][_0x3a6d('5')]&&process[_0x3a6d('4')][_0x3a6d('5')]===_0x3a6d('6'))console[_0x3a6d('7')]=()=>{};}else{cookiesArr=[$[_0x3a6d('8')](_0x3a6d('9')),$[_0x3a6d('8')](_0x3a6d('a')),...jsonParse($[_0x3a6d('8')](_0x3a6d('b'))||'\x5b\x5d')[_0x3a6d('c')](_0x832422=>_0x832422[_0x3a6d('d')])][_0x3a6d('e')](_0x31bf20=>!!_0x31bf20);}guaopencard_addSku=$[_0x3a6d('0')]()?process[_0x3a6d('4')][_0x3a6d('f')]?process[_0x3a6d('4')][_0x3a6d('f')]:''+guaopencard_addSku:$[_0x3a6d('8')](_0x3a6d('f'))?$[_0x3a6d('8')](_0x3a6d('f')):''+guaopencard_addSku;guaopencard_addSku=$[_0x3a6d('0')]()?process[_0x3a6d('4')][_0x3a6d('10')]?process[_0x3a6d('4')][_0x3a6d('10')]:''+guaopencard_addSku:$[_0x3a6d('8')](_0x3a6d('10'))?$[_0x3a6d('8')](_0x3a6d('10')):''+guaopencard_addSku;guaopencard=$[_0x3a6d('0')]()?process[_0x3a6d('4')][_0x3a6d('11')]?process[_0x3a6d('4')][_0x3a6d('11')]:''+guaopencard:$[_0x3a6d('8')](_0x3a6d('11'))?$[_0x3a6d('8')](_0x3a6d('11')):''+guaopencard;guaopencard=$[_0x3a6d('0')]()?process[_0x3a6d('4')][_0x3a6d('12')]?process[_0x3a6d('4')][_0x3a6d('12')]:''+guaopencard:$[_0x3a6d('8')](_0x3a6d('12'))?$[_0x3a6d('8')](_0x3a6d('12')):''+guaopencard;guaopenwait=$[_0x3a6d('0')]()?process[_0x3a6d('4')][_0x3a6d('13')]?process[_0x3a6d('4')][_0x3a6d('13')]:''+guaopenwait:$[_0x3a6d('8')](_0x3a6d('13'))?$[_0x3a6d('8')](_0x3a6d('13')):''+guaopenwait;guaopenwait=$[_0x3a6d('0')]()?process[_0x3a6d('4')][_0x3a6d('14')]?process[_0x3a6d('4')][_0x3a6d('14')]:''+guaopenwait:$[_0x3a6d('8')](_0x3a6d('14'))?$[_0x3a6d('8')](_0x3a6d('14')):''+guaopenwait;guaopenwait=parseInt(guaopenwait,0xa)||0x0;allMessage='';message='';$[_0x3a6d('15')]=![];$[_0x3a6d('16')]=![];$[_0x3a6d('17')]=![];let lz_jdpin_token_cookie='';let activityCookie='';!(async()=>{if($[_0x3a6d('0')]()){if(guaopencard+''!=_0x3a6d('18')){console[_0x3a6d('7')](_0x3a6d('19'));}if(guaopencard+''!=_0x3a6d('18')){return;}}if(!cookiesArr[0x0]){$[_0x3a6d('1a')]($[_0x3a6d('1b')],_0x3a6d('1c'),_0x3a6d('1d'),{'open-url':_0x3a6d('1d')});return;}$[_0x3a6d('1e')]=_0x3a6d('1f');$[_0x3a6d('20')]=_0x3a6d('21');console[_0x3a6d('7')](_0x3a6d('22')+$[_0x3a6d('1e')]+_0x3a6d('23')+$[_0x3a6d('20')]);for(let _0x3e310f=0x0;_0x3e310f<cookiesArr[_0x3a6d('24')];_0x3e310f++){cookie=cookiesArr[_0x3e310f];if(cookie){$[_0x3a6d('25')]=decodeURIComponent(cookie[_0x3a6d('26')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x3a6d('26')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x3a6d('27')]=_0x3e310f+0x1;message='';$[_0x3a6d('28')]=0x0;$[_0x3a6d('15')]=![];$[_0x3a6d('29')]='';console[_0x3a6d('7')](_0x3a6d('2a')+$[_0x3a6d('27')]+'\u3011'+($[_0x3a6d('29')]||$[_0x3a6d('25')])+_0x3a6d('2b'));await getUA();await run();if(_0x3e310f==0x0&&!$[_0x3a6d('2c')])break;if($[_0x3a6d('16')]||$[_0x3a6d('17')])break;}}if($[_0x3a6d('16')]){let _0xb5bc06=_0x3a6d('2d');$[_0x3a6d('1a')]($[_0x3a6d('1b')],'',''+_0xb5bc06);if($[_0x3a6d('0')]())await notify[_0x3a6d('2e')](''+$[_0x3a6d('1b')],''+_0xb5bc06);}})()[_0x3a6d('2f')](_0x278db3=>$[_0x3a6d('30')](_0x278db3))[_0x3a6d('31')](()=>$[_0x3a6d('32')]());async function run(){try{$[_0x3a6d('33')]=!![];$[_0x3a6d('34')]=0x0;lz_jdpin_token_cookie='';$[_0x3a6d('35')]='';$[_0x3a6d('36')]='';let _0x444366=![];await takePostRequest(_0x3a6d('37'));if($[_0x3a6d('35')]==''){console[_0x3a6d('7')](_0x3a6d('38'));return;}await getCk();if(activityCookie==''){console[_0x3a6d('7')](_0x3a6d('39'));return;}if($[_0x3a6d('17')]===!![]){console[_0x3a6d('7')](_0x3a6d('3a'));return;}if($[_0x3a6d('16')]){console[_0x3a6d('7')](_0x3a6d('3b'));return;}await takePostRequest(_0x3a6d('3c'));await takePostRequest(_0x3a6d('3d'));if(!$[_0x3a6d('36')]){console[_0x3a6d('7')](_0x3a6d('3e'));return;}await takePostRequest(_0x3a6d('3f'));await takePostRequest(_0x3a6d('40'));await takePostRequest(_0x3a6d('41'));if(!$[_0x3a6d('2c')]){console[_0x3a6d('7')](_0x3a6d('42'));return;}if($[_0x3a6d('33')]===!![]||Date[_0x3a6d('43')]()>$[_0x3a6d('34')]){$[_0x3a6d('17')]=!![];console[_0x3a6d('7')](_0x3a6d('3a'));return;}await takePostRequest(_0x3a6d('44'));await $[_0x3a6d('45')](0x3e8);$[_0x3a6d('46')]=[];$[_0x3a6d('47')]=![];await takePostRequest(_0x3a6d('48'));await takePostRequest(_0x3a6d('49'));if($[_0x3a6d('47')]==![]){console[_0x3a6d('7')](_0x3a6d('4a'));for(o of $[_0x3a6d('46')]){$[_0x3a6d('4b')]=![];if(o[_0x3a6d('4c')]==0x0){_0x444366=!![];$[_0x3a6d('4d')]=o[_0x3a6d('4e')];await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0xbb8+0xbb8,0xa));await joinShop();await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x3e8+0x3e8,0xa));await takePostRequest(_0x3a6d('41'));await takePostRequest(_0x3a6d('44'));await takePostRequest(_0x3a6d('49'));await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0xbb8+0x7d0,0xa));}}}else{console[_0x3a6d('7')](_0x3a6d('50'));}$[_0x3a6d('7')](_0x3a6d('51')+$[_0x3a6d('52')]);if(!$[_0x3a6d('52')]&&!$[_0x3a6d('16')]){_0x444366=!![];await takePostRequest(_0x3a6d('52'));await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x7d0+0xbb8,0xa));}$[_0x3a6d('53')]=![];await takePostRequest('\u9080\u8bf7');if($[_0x3a6d('53')]){await takePostRequest('\u52a9\u529b');}$[_0x3a6d('7')](_0x3a6d('54')+$[_0x3a6d('55')]);if(!$[_0x3a6d('55')]&&!$[_0x3a6d('16')]){_0x444366=!![];await takePostRequest(_0x3a6d('55'));await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x7d0+0xbb8,0xa));}$[_0x3a6d('7')](_0x3a6d('56')+$[_0x3a6d('57')]);if(!$[_0x3a6d('57')]&&!$[_0x3a6d('16')]){if(guaopencard_addSku+''==_0x3a6d('18')){_0x444366=!![];await takePostRequest(_0x3a6d('57'));await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x7d0+0xfa0,0xa));}else{console[_0x3a6d('7')](_0x3a6d('58'));}}$[_0x3a6d('59')]=!![];$[_0x3a6d('7')](_0x3a6d('5a')+$[_0x3a6d('5b')]);if(!$[_0x3a6d('5b')]&&!$[_0x3a6d('16')]){_0x444366=!![];for(let _0x5f3943 of $[_0x3a6d('5c')]||[]){if($[_0x3a6d('59')]==![])break;if(_0x5f3943[_0x3a6d('5d')]&&_0x5f3943[_0x3a6d('4c')]===0x0){$[_0x3a6d('5e')]=_0x5f3943[_0x3a6d('5d')];await takePostRequest(_0x3a6d('5f'));await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0xbb8+0xbb8,0xa));}}}$[_0x3a6d('59')]=!![];for(m=0x1;$[_0x3a6d('60')]--;m++){if(Number($[_0x3a6d('60')])<=0x0)break;console[_0x3a6d('7')]('\u7b2c'+m+_0x3a6d('61'));await takePostRequest(_0x3a6d('62'));if($[_0x3a6d('59')]==![])break;await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x7d0+0x7d0,0xa));}if(_0x444366){await takePostRequest(_0x3a6d('41'));}console[_0x3a6d('7')]($[_0x3a6d('63')]+_0x3a6d('64')+$[_0x3a6d('65')]);await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x3e8+0x7d0,0xa));await takePostRequest(_0x3a6d('66'));await takePostRequest(_0x3a6d('67'));if($[_0x3a6d('16')]){console[_0x3a6d('7')](_0x3a6d('3b'));return;}console[_0x3a6d('7')]($[_0x3a6d('2c')]);console[_0x3a6d('7')](_0x3a6d('68')+$[_0x3a6d('20')]);if($[_0x3a6d('27')]==0x1){$[_0x3a6d('20')]=$[_0x3a6d('2c')];console[_0x3a6d('7')](_0x3a6d('69')+$[_0x3a6d('20')]);}await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x3e8+0x1388,0xa));if(_0x444366)await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x3e8+0x2710,0xa));if(guaopenwait){if($[_0x3a6d('27')]!=cookiesArr[_0x3a6d('24')]){console[_0x3a6d('7')]('\u7b49\u5f85'+guaopenwait+'\u79d2');await $[_0x3a6d('45')](parseInt(guaopenwait,0xa)*0x3e8);}}else{if($[_0x3a6d('27')]%0x3==0x0)console[_0x3a6d('7')](_0x3a6d('6a'));if($[_0x3a6d('27')]%0x3==0x0)await $[_0x3a6d('45')](parseInt(Math[_0x3a6d('4f')]()*0x1388+0xea60,0xa));}}catch(_0x11778e){console[_0x3a6d('7')](_0x11778e);}}async function takePostRequest(_0x2f4bde){if($[_0x3a6d('16')])return;let _0x35b6b8=_0x3a6d('6b');let _0x527eef='';let _0x6c0b29=_0x3a6d('6c');let _0x5291ae='';switch(_0x2f4bde){case _0x3a6d('37'):_0x35b6b8=_0x3a6d('6d');_0x527eef=_0x3a6d('6e');break;case _0x3a6d('3c'):_0x35b6b8=_0x35b6b8+_0x3a6d('6f');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')];break;case _0x3a6d('3d'):_0x35b6b8=_0x35b6b8+_0x3a6d('71');_0x527eef=_0x3a6d('72')+($[_0x3a6d('73')]||$[_0x3a6d('4e')]||'')+_0x3a6d('74')+$[_0x3a6d('35')]+_0x3a6d('75');break;case _0x3a6d('3f'):_0x35b6b8=_0x35b6b8+_0x3a6d('76');let _0x5160c4=_0x35b6b8+_0x3a6d('77')+$[_0x3a6d('1e')]+_0x3a6d('23')+$[_0x3a6d('20')];_0x527eef=_0x3a6d('78')+($[_0x3a6d('73')]||$[_0x3a6d('4e')]||'')+_0x3a6d('79')+encodeURIComponent($[_0x3a6d('36')])+_0x3a6d('7a')+$[_0x3a6d('1e')]+_0x3a6d('7b')+encodeURIComponent(_0x5160c4)+_0x3a6d('7c');break;case _0x3a6d('40'):_0x35b6b8=_0x35b6b8+_0x3a6d('7d');_0x527eef=_0x3a6d('7e')+encodeURIComponent($[_0x3a6d('36')]);break;case _0x3a6d('41'):_0x35b6b8=_0x35b6b8+_0x3a6d('7f');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')])+_0x3a6d('81')+encodeURIComponent($[_0x3a6d('82')])+_0x3a6d('83')+encodeURIComponent($[_0x3a6d('84')])+_0x3a6d('85')+$[_0x3a6d('20')];break;case _0x3a6d('44'):_0x35b6b8=_0x35b6b8+_0x3a6d('86');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);break;case _0x3a6d('49'):_0x35b6b8=_0x35b6b8+_0x3a6d('87');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);break;case _0x3a6d('48'):_0x35b6b8=_0x35b6b8+_0x3a6d('88');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);break;case _0x3a6d('62'):_0x35b6b8=_0x35b6b8+_0x3a6d('89');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);break;case _0x3a6d('52'):_0x35b6b8=_0x35b6b8+_0x3a6d('8a');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);break;case _0x3a6d('55'):case _0x3a6d('57'):case _0x3a6d('5f'):_0x35b6b8=_0x35b6b8+_0x3a6d('8b')+_0x2f4bde;_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);if(_0x2f4bde==_0x3a6d('5f'))_0x527eef+=_0x3a6d('8c')+$[_0x3a6d('5e')];break;case'\u9080\u8bf7':case'\u52a9\u529b':if(_0x2f4bde=='\u52a9\u529b'){_0x35b6b8=_0x35b6b8+_0x3a6d('8d');}else{_0x35b6b8=_0x35b6b8+_0x3a6d('8e');}_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')])+_0x3a6d('23')+$[_0x3a6d('20')];break;case _0x3a6d('8f'):case _0x3a6d('5b'):case _0x3a6d('90'):case _0x3a6d('91'):_0x35b6b8=_0x35b6b8+_0x3a6d('92');let _0x514aac='';let _0x2645df='';if(_0x2f4bde==_0x3a6d('8f')){_0x514aac=0x1f;_0x2645df=0x1f;}else if(_0x2f4bde==_0x3a6d('5b')){_0x514aac=0x5;_0x2645df=$[_0x3a6d('5e')]||0x5;}else if(_0x2f4bde==_0x3a6d('90')){_0x514aac=0xe;_0x2645df=$[_0x3a6d('93')]||0xe;}else if(_0x2f4bde==_0x3a6d('91')){_0x514aac=0x2;_0x2645df=$[_0x3a6d('94')]||0x2;}_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')])+_0x3a6d('95')+$[_0x3a6d('2c')]+_0x3a6d('96')+_0x514aac+_0x3a6d('97')+_0x2645df;break;case _0x3a6d('66'):_0x35b6b8=_0x35b6b8+_0x3a6d('98');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')])+_0x3a6d('95')+$[_0x3a6d('2c')];break;case _0x3a6d('67'):_0x35b6b8=_0x35b6b8+_0x3a6d('99');_0x527eef=_0x3a6d('70')+$[_0x3a6d('1e')]+_0x3a6d('80')+encodeURIComponent($[_0x3a6d('36')]);break;default:console[_0x3a6d('7')]('\u9519\u8bef'+_0x2f4bde);}let _0x29bfd7=getPostRequest(_0x35b6b8,_0x527eef,_0x6c0b29);return new Promise(async _0x1372dd=>{$[_0x3a6d('9a')](_0x29bfd7,(_0xd49002,_0x1691d5,_0x57d898)=>{try{setActivityCookie(_0x1691d5);if(_0xd49002){if(_0x1691d5&&typeof _0x1691d5[_0x3a6d('9b')]!=_0x3a6d('9c')){if(_0x1691d5[_0x3a6d('9b')]==0x1ed){console[_0x3a6d('7')](_0x3a6d('3b'));$[_0x3a6d('16')]=!![];}}console[_0x3a6d('7')](''+$[_0x3a6d('9d')](_0xd49002,_0xd49002));console[_0x3a6d('7')](_0x2f4bde+_0x3a6d('9e'));}else{dealReturn(_0x2f4bde,_0x57d898);}}catch(_0x1ad428){console[_0x3a6d('7')](_0x1ad428,_0x1691d5);}finally{_0x1372dd();}});});}async function dealReturn(_0x18ddac,_0x40a705){let _0x5acf5c='';try{if(_0x18ddac!=_0x3a6d('3f')||_0x18ddac!=_0x3a6d('44')){if(_0x40a705){_0x5acf5c=JSON[_0x3a6d('9f')](_0x40a705);}}}catch(_0x4e1735){console[_0x3a6d('7')](_0x18ddac+_0x3a6d('a0'));console[_0x3a6d('7')](_0x40a705);$[_0x3a6d('59')]=![];}try{switch(_0x18ddac){case _0x3a6d('37'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a2')]==0x0){if(typeof _0x5acf5c[_0x3a6d('a3')]!=_0x3a6d('9c'))$[_0x3a6d('35')]=_0x5acf5c[_0x3a6d('a3')];}else if(_0x5acf5c[_0x3a6d('a4')]){console[_0x3a6d('7')](_0x3a6d('a5')+(_0x5acf5c[_0x3a6d('a4')]||''));}else{console[_0x3a6d('7')](_0x40a705);}}else{console[_0x3a6d('7')](_0x40a705);}break;case _0x3a6d('3c'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){if(typeof _0x5acf5c[_0x3a6d('a7')][_0x3a6d('73')]!=_0x3a6d('9c'))$[_0x3a6d('73')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('73')];if(typeof _0x5acf5c[_0x3a6d('a7')][_0x3a6d('4e')]!=_0x3a6d('9c'))$[_0x3a6d('4e')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('4e')];}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('3d'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){if(_0x5acf5c[_0x3a6d('a7')]&&typeof _0x5acf5c[_0x3a6d('a7')][_0x3a6d('a9')]!=_0x3a6d('9c'))$[_0x3a6d('36')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('a9')];if(_0x5acf5c[_0x3a6d('a7')]&&typeof _0x5acf5c[_0x3a6d('a7')][_0x3a6d('84')]!=_0x3a6d('9c'))$[_0x3a6d('84')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('84')];}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('40'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){if(_0x5acf5c[_0x3a6d('a7')]&&typeof _0x5acf5c[_0x3a6d('a7')][_0x3a6d('aa')]!=_0x3a6d('9c'))$[_0x3a6d('82')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('aa')]||_0x3a6d('ab');}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('41'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){$[_0x3a6d('34')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('34')]||_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ac')][_0x3a6d('34')]||0x0;$[_0x3a6d('33')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ad')]||![];$[_0x3a6d('60')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ae')][_0x3a6d('60')]||0x0;$[_0x3a6d('65')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ae')][_0x3a6d('65')]||0x0;$[_0x3a6d('63')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ae')][_0x3a6d('63')]||0x0;$[_0x3a6d('2c')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ae')][_0x3a6d('2c')]||'';}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('48'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){$[_0x3a6d('57')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('57')]||![];$[_0x3a6d('52')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('52')]||![];$[_0x3a6d('55')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('55')]||![];$[_0x3a6d('5b')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('5b')]||![];$[_0x3a6d('5c')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('5c')]||[];}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('49'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){let _0x30ab20=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('af')]||[];let _0x34fb30=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b0')]||[];let _0x45dea6=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b1')]||[];let _0x30e3aa=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b2')]||[];$[_0x3a6d('46')]=[..._0x45dea6,..._0x30ab20,..._0x34fb30,..._0x30e3aa];$[_0x3a6d('47')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('47')]||![];$[_0x3a6d('b3')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b4')]||0x0;$[_0x3a6d('b5')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b6')]||0x0;$[_0x3a6d('b7')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b7')]||0x0;}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('62'):case _0x3a6d('52'):case _0x3a6d('8f'):case _0x3a6d('5b'):case _0x3a6d('90'):case _0x3a6d('91'):case _0x3a6d('55'):case _0x3a6d('57'):case _0x3a6d('5f'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){if(typeof _0x5acf5c[_0x3a6d('a7')]==_0x3a6d('a1')){let _0x152372='';let _0x17e922='\u62bd\u5956';if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b8')]){_0x152372=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b8')]+'\u4eac\u8c46';}if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b9')]){_0x152372+='\x20'+_0x5acf5c[_0x3a6d('a7')][_0x3a6d('b9')]+_0x3a6d('ba');}if(_0x18ddac==_0x3a6d('52')){_0x17e922='\u5173\u6ce8';if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('bb')]&&_0x5acf5c[_0x3a6d('a7')][_0x3a6d('bc')]){_0x152372+=_0x3a6d('bd')+_0x5acf5c[_0x3a6d('a7')][_0x3a6d('bb')]+'\u4eac\u8c46';}}else if(_0x18ddac==_0x3a6d('91')||_0x18ddac==_0x3a6d('57')){_0x17e922='\u52a0\u8d2d';}else if(_0x18ddac==_0x3a6d('8f')){_0x17e922=_0x3a6d('be');}else if(_0x18ddac==_0x3a6d('90')){_0x17e922=_0x3a6d('bf');}else if(_0x18ddac==_0x3a6d('5b')||_0x18ddac==_0x3a6d('5f')){_0x17e922=_0x3a6d('c0');}else if(_0x18ddac==_0x3a6d('55')){_0x17e922='\u7b7e\u5230';}else{_0x152372=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('c1')]==!![]&&(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('c2')]==0x6&&_0x5acf5c[_0x3a6d('a7')][_0x3a6d('1b')]||'')||_0x3a6d('c3');}if(!_0x152372){_0x152372=_0x3a6d('c3');}console[_0x3a6d('7')](_0x17e922+_0x3a6d('c4')+(_0x152372||_0x40a705));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else if(_0x5acf5c[_0x3a6d('a8')]){$[_0x3a6d('59')]=![];console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('66'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]){console[_0x3a6d('7')](_0x3a6d('c5'));let _0x2fdb72=0x0;let _0x1beab1=0x0;for(let _0x19e3a2 in _0x5acf5c[_0x3a6d('a7')][_0x3a6d('c6')]){let _0x23a386=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('c6')][_0x19e3a2];if(_0x23a386[_0x3a6d('c7')]==_0x3a6d('c8')){_0x2fdb72++;_0x1beab1=_0x23a386[_0x3a6d('c7')][_0x3a6d('c9')]('\u4eac\u8c46','');}else{console[_0x3a6d('7')](''+(_0x23a386[_0x3a6d('ca')]!=0xa&&_0x23a386[_0x3a6d('cb')]&&_0x23a386[_0x3a6d('cb')]+'\x3a'||'')+_0x23a386[_0x3a6d('c7')]);}}if(_0x2fdb72>0x0)console[_0x3a6d('7')](_0x3a6d('cc')+_0x2fdb72+'\x29\x3a'+(_0x2fdb72*parseInt(_0x1beab1,0xa)||0x1e)+'\u4eac\u8c46');}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case _0x3a6d('67'):if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a6')]&&_0x5acf5c[_0x3a6d('a6')]===!![]&&_0x5acf5c[_0x3a6d('a7')]){$[_0x3a6d('cd')]=_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ce')][_0x3a6d('24')];$[_0x3a6d('7')](_0x3a6d('cf')+_0x5acf5c[_0x3a6d('a7')][_0x3a6d('ce')][_0x3a6d('24')]+'\u4e2a');}else if(_0x5acf5c[_0x3a6d('a8')]){console[_0x3a6d('7')](_0x18ddac+'\x20'+(_0x5acf5c[_0x3a6d('a8')]||''));}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}break;case'\u9080\u8bf7':case'\u52a9\u529b':if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('4c')]==0xc8){if(_0x18ddac=='\u52a9\u529b'){console[_0x3a6d('7')](_0x3a6d('d0'));}else{$[_0x3a6d('53')]=!![];}}else if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('4c')]==0x69){console[_0x3a6d('7')](_0x3a6d('d1'));}else if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('4c')]==0x68){console[_0x3a6d('7')](_0x3a6d('d2'));}else if(_0x5acf5c[_0x3a6d('a7')][_0x3a6d('4c')]==0x65){}else{console[_0x3a6d('7')](_0x40a705);}}else{console[_0x3a6d('7')](_0x18ddac+'\x20'+_0x40a705);}case _0x3a6d('3f'):case _0x3a6d('44'):break;default:console[_0x3a6d('7')](_0x18ddac+_0x3a6d('d3')+_0x40a705);}if(typeof _0x5acf5c==_0x3a6d('a1')){if(_0x5acf5c[_0x3a6d('a8')]){if(_0x5acf5c[_0x3a6d('a8')][_0x3a6d('d4')]('\u706b\u7206')>-0x1){$[_0x3a6d('15')]=!![];}}}}catch(_0x1ce252){console[_0x3a6d('7')](_0x1ce252);}}function getPostRequest(_0x7cec1d,_0x1fb379,_0x34df10=_0x3a6d('6c')){let _0x3bd055={'Accept':_0x3a6d('d5'),'Accept-Encoding':_0x3a6d('d6'),'Accept-Language':_0x3a6d('d7'),'Connection':_0x3a6d('d8'),'Content-Type':_0x3a6d('d9'),'Cookie':cookie,'User-Agent':$['\x55\x41'],'X-Requested-With':_0x3a6d('da')};if(_0x7cec1d[_0x3a6d('d4')](_0x3a6d('6b'))>-0x1){_0x3bd055[_0x3a6d('db')]=_0x3a6d('dc')+$[_0x3a6d('1e')]+_0x3a6d('23')+$[_0x3a6d('20')];_0x3bd055[_0x3a6d('dd')]=''+(lz_jdpin_token_cookie&&lz_jdpin_token_cookie||'')+($[_0x3a6d('36')]&&_0x3a6d('de')+$[_0x3a6d('36')]+'\x3b'||'')+activityCookie;}return{'\x75\x72\x6c':_0x7cec1d,'\x6d\x65\x74\x68\x6f\x64':_0x34df10,'\x68\x65\x61\x64\x65\x72\x73':_0x3bd055,'\x62\x6f\x64\x79':_0x1fb379,'\x74\x69\x6d\x65\x6f\x75\x74':0x7530};}function getCk(){/* ck */return new Promise(_0x4e7ad0=>{let _0x57ff06={'\x75\x72\x6c':_0x3a6d('dc')+$[_0x3a6d('1e')]+_0x3a6d('23')+$[_0x3a6d('20')],'\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};$[_0x3a6d('df')](_0x57ff06,async(_0x41ba0c,_0x569d10,_0x8ca25b)=>{try{if(_0x41ba0c){if(_0x569d10&&typeof _0x569d10[_0x3a6d('9b')]!=_0x3a6d('9c')){if(_0x569d10[_0x3a6d('9b')]==0x1ed){console[_0x3a6d('7')](_0x3a6d('3b'));$[_0x3a6d('16')]=!![];}}console[_0x3a6d('7')](''+$[_0x3a6d('9d')](_0x41ba0c));console[_0x3a6d('7')]($[_0x3a6d('1b')]+_0x3a6d('e0'));}else{let _0x4551cb=_0x8ca25b[_0x3a6d('26')](/(活动已经结束)/)&&_0x8ca25b[_0x3a6d('26')](/(活动已经结束)/)[0x1]||'';if(_0x4551cb){$[_0x3a6d('17')]=!![];console[_0x3a6d('7')](_0x3a6d('e1'));}setActivityCookie(_0x569d10);}}catch(_0x29105a){$[_0x3a6d('30')](_0x29105a,_0x569d10);}finally{_0x4e7ad0();}});});}function setActivityCookie(_0x15e39a){let _0x45d444='';let _0xbd0346='';let _0x17e729='';let _0x4b4f7c=_0x15e39a&&_0x15e39a[_0x3a6d('e2')]&&(_0x15e39a[_0x3a6d('e2')][_0x3a6d('e3')]||_0x15e39a[_0x3a6d('e2')][_0x3a6d('e4')]||'')||'';let _0x48b6c4='';if(_0x4b4f7c){if(typeof _0x4b4f7c!=_0x3a6d('a1')){_0x48b6c4=_0x4b4f7c[_0x3a6d('e5')]('\x2c');}else _0x48b6c4=_0x4b4f7c;for(let _0x290a7b of _0x48b6c4){let _0xbc7704=_0x290a7b[_0x3a6d('e5')]('\x3b')[0x0][_0x3a6d('e6')]();if(_0xbc7704[_0x3a6d('e5')]('\x3d')[0x1]){if(_0xbc7704[_0x3a6d('d4')](_0x3a6d('e7'))>-0x1)_0x45d444=_0xbc7704[_0x3a6d('c9')](/ /g,'')+'\x3b';if(_0xbc7704[_0x3a6d('d4')](_0x3a6d('e8'))>-0x1)_0xbd0346=_0xbc7704[_0x3a6d('c9')](/ /g,'')+'\x3b';if(_0xbc7704[_0x3a6d('d4')](_0x3a6d('e9'))>-0x1)_0x17e729=''+_0xbc7704[_0x3a6d('c9')](/ /g,'')+'\x3b';}}}if(_0x45d444&&_0xbd0346)activityCookie=_0x45d444+'\x20'+_0xbd0346;if(_0x17e729)lz_jdpin_token_cookie=_0x17e729;}async function getUA(){$['\x55\x41']=_0x3a6d('ea')+randomString(0x28)+_0x3a6d('eb');}function randomString(_0xdd8f61){_0xdd8f61=_0xdd8f61||0x20;let _0x495697=_0x3a6d('ec'),_0x5943a3=_0x495697[_0x3a6d('24')],_0x4e7c43='';for(i=0x0;i<_0xdd8f61;i++)_0x4e7c43+=_0x495697[_0x3a6d('ed')](Math[_0x3a6d('ee')](Math[_0x3a6d('4f')]()*_0x5943a3));return _0x4e7c43;};_0xode='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)}