forked from amumu2008/scripts-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gua_opencard45.js
147 lines (131 loc) · 40.1 KB
/
gua_opencard45.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
144
145
146
/*
10.15~10.21 联合开卡 [gua_opencard45.js]
新增开卡脚本 (脚本已加密
一次性脚本
1.邀请一人20豆(有可能没有豆
2.开12张 成功开1张 可能获得5京豆
全部开完获得1次抽奖
3.关注10京豆 获得1次抽奖
4.加购5京豆 获得1次抽奖(默认不加购 如需加购请设置环境变量[guaopencard_addSku45]为"true"
5.抽奖 (默认不抽奖 如需抽奖请设置环境变量[guaopencard_draw45]为"3"
填写要抽奖的次数 不足已自身次数为准
guaopencard_draw45="3"
填非数字会全都抽奖
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard45="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait45="0"
All变量适用
————————————————
入口:[ 10.15~10.21 联合开卡 (https://3.cn/10-3bvYTA)]
请求太频繁会被黑ip
过10分钟再执行
============Quantumultx===============
[task_local]
#10.15~10.21 联合开卡
47 6 15-21 10 * https://raw.githubusercontent.com/smiek2221/scripts/master/gua_opencard45.js, tag=10.15~10.21 联合开卡, enabled=true
*/
let guaopencard_addSku = "false"
let guaopencard = "false"
let guaopenwait = "0"
let guaopencard_draw = "0"
const $ = new Env('10.15~10.21 联合开卡');
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
//IOS等用户直接用NobyDa的jd cookie
var _0xodh='jsjiami.com.v6',_0x74b7=[_0xodh,'\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\x35','\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\x35','\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\x35','\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\x35','\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\x35\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\x70\x70\x6b\x65\x79','\x35\x31\x42\x35\x39\x42\x42\x38\x30\x35\x39\x30\x33\x44\x41\x34\x43\x45\x35\x31\x33\x44\x32\x39\x45\x43\x34\x34\x38\x33\x37\x35','\x75\x73\x65\x72\x49\x64','\x31\x30\x32\x39\x39\x31\x37\x31','\x61\x63\x74\x49\x64','\x36\x66\x39\x63\x33\x61\x32\x63\x61\x66\x65\x62\x34\x32\x32\x30\x62\x62\x36\x32\x32\x64\x37\x5f\x31\x30\x31\x35','\x4d\x69\x78\x4e\x69\x63\x6b\x73','\x69\x6e\x76\x69\x74\x65\x4e\x69\x63\x6b','\x6a\x4a\x6e\x67\x78\x49\x6e\x56\x4f\x67\x73\x6a\x66\x74\x41\x76\x6a\x50\x31\x64\x67\x46\x34\x74\x4c\x4e\x59\x41\x34\x73\x65\x75\x41\x36\x37\x4d\x4f\x49\x59\x51\x78\x45\x6b\x33\x56\x6c\x39\x2b\x41\x56\x6f\x34\x4e\x46\x2b\x74\x67\x79\x65\x49\x63\x36\x41\x36\x6b\x64\x4b\x33\x72\x4c\x42\x51\x70\x45\x51\x48\x39\x56\x34\x74\x64\x72\x72\x68\x30\x77\x3d\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','\x4d\x69\x78\x4e\x69\x63\x6b','\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','\u6b64\x69\x70\u5df2\u88ab\u9650\u5236\uff0c\u8bf7\u8fc7\x31\x30\u5206\u949f\u540e\u518d\u6267\u884c\u811a\u672c\x0a','\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','\x61\x63\x74\x69\x76\x69\x74\x79\x5f\x6c\x6f\x61\x64','\x6e\x6f\x77','\u6d3b\u52a8\u7ed3\u675f','\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65\u5931\u8d25','\x74\x6f\x42\x69\x6e\x64','\x6f\x70\x65\x6e\x4c\x69\x73\x74','\x73\x68\x6f\x70\x4c\x69\x73\x74','\x6d\x69\x73\x73\x69\x6f\x6e\x54\x79\x70\x65','\x6f\x70\x65\x6e\x43\x61\x72\x64','\x6f\x70\x65\x6e','\x6a\x6f\x69\x6e\x56\x65\x6e\x64\x65\x72\x49\x64','\x6d\x69\x73\x73\x69\x6f\x6e','\x77\x61\x69\x74','\x72\x61\x6e\x64\x6f\x6d','\x68\x61\x73\x43\x6f\x6c\x6c\x65\x63\x74\x53\x68\x6f\x70','\x75\x6e\x69\x74\x65\x43\x6f\x6c\x6c\x65\x63\x74\x53\x68\x6f\x70','\u5df2\u7ecf\u5173\u6ce8','\x75\x6e\x69\x74\x65\x41\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\x35\x5d\u4e3a\x22\x74\x72\x75\x65\x22','\x72\x75\x6e\x46\x61\x6c\x61\x67','\x75\x73\x65\x64\x43\x68\x61\x6e\x63\x65','\u62bd\u5956\u6b21\u6570\u4e3a\x3a','\u6b21\u62bd\u5956','\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\x35\x5d\u4e3a\x22\x33\x22\x20\x33\u4e3a\u6b21\u6570','\x6d\x79\x41\x77\x61\x72\x64','\x6d\x69\x73\x73\x69\x6f\x6e\x49\x6e\x76\x69\x74\x65\x4c\x69\x73\x74','\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\x6a\x69\x6e\x67\x67\x65\x6e\x67\x6a\x63\x71\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\x6a\x69\x6e\x67\x67\x65\x6e\x67\x6a\x63\x71\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x2f\x66\x72\x6f\x6e\x74\x68\x35\x2f\x25\x33\x46\x6c\x6e\x67\x25\x33\x44\x30\x25\x32\x36\x6c\x61\x74\x25\x33\x44\x30\x25\x32\x36\x73\x69\x64\x25\x33\x44\x34\x39\x36\x38\x37\x63\x64\x36\x34\x61\x63\x61\x32\x61\x65\x39\x33\x61\x61\x34\x33\x37\x34\x38\x61\x30\x34\x65\x38\x66\x36\x77\x25\x32\x36\x75\x6e\x5f\x61\x72\x65\x61\x25\x33\x44\x31\x36\x5f\x31\x33\x31\x35\x5f\x31\x33\x31\x36\x5f\x35\x33\x35\x32\x32\x25\x32\x33\x2f\x70\x61\x67\x65\x73\x2f\x75\x6e\x69\x74\x65\x64\x43\x61\x72\x64\x4e\x65\x77\x32\x30\x32\x31\x31\x30\x31\x30\x2d\x6b\x61\x2f\x75\x6e\x69\x74\x65\x64\x43\x61\x72\x64\x4e\x65\x77\x32\x30\x32\x31\x31\x30\x31\x30\x2d\x6b\x61\x25\x33\x46\x61\x63\x74\x49\x64\x25\x33\x44\x39\x31\x35\x30\x65\x31\x64\x31\x36\x62\x39\x64\x34\x30\x5f\x31\x30\x31\x30\x31\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\x62\x39\x62\x34\x63\x65\x36\x39\x64\x34\x32\x64\x61\x63\x62\x36\x34\x30\x38\x34\x32\x37\x39\x64\x35\x31\x63\x64\x65\x65\x37\x36\x34\x64\x37\x37\x38\x31\x66\x61\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\x31\x30\x30\x37\x33\x32\x39\x39\x31\x26\x73\x76\x3d\x31\x31\x31\x26\x73\x69\x67\x6e\x3d\x36\x37\x65\x32\x35\x34\x66\x66\x62\x63\x62\x31\x33\x62\x65\x39\x65\x31\x32\x61\x39\x37\x38\x32\x63\x39\x63\x64\x66\x33\x39\x38','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x5f\x6c\x6f\x61\x64\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x5f\x6c\x6f\x61\x64','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x73\x68\x6f\x70\x4c\x69\x73\x74\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x73\x68\x6f\x70\x4c\x69\x73\x74','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x63\x6f\x6d\x70\x6c\x65\x74\x65\x2f\x6d\x69\x73\x73\x69\x6f\x6e\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x72\x65\x6c\x61\x74\x69\x6f\x6e\x42\x69\x6e\x64','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x63\x6f\x6d\x70\x6c\x65\x74\x65\x2f\x6d\x69\x73\x73\x69\x6f\x6e','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x64\x72\x61\x77\x2f\x70\x6f\x73\x74\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x64\x72\x61\x77','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x64\x72\x61\x77\x2f\x70\x6f\x73\x74','\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x63\x6f\x6c\x6c\x65\x63\x74\x53\x68\x6f\x70','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70','\x61\x64\x64\x43\x61\x72\x74','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x61\x64\x64\x43\x61\x72\x74\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x61\x64\x64\x43\x61\x72\x74','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x6d\x79\x41\x77\x61\x72\x64\x73\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x6d\x79\x41\x77\x61\x72\x64\x73','\x2f\x64\x6d\x2f\x66\x72\x6f\x6e\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x6d\x69\x73\x73\x69\x6f\x6e\x49\x6e\x76\x69\x74\x65\x4c\x69\x73\x74\x3f\x6d\x69\x78\x5f\x6e\x69\x63\x6b\x3d','\x73\x68\x61\x72\x65\x41\x63\x74','\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x4e\x65\x77\x2f\x6d\x69\x73\x73\x69\x6f\x6e\x49\x6e\x76\x69\x74\x65\x4c\x69\x73\x74','\x70\x6f\x73\x74','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x74\x6f\x53\x74\x72','\x20\x41\x50\x49\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u8def\u91cd\u8bd5','\x61\x63\x63\x65\x73\x73\x4c\x6f\x67\x57\x69\x74\x68\x41\x44','\x64\x72\x61\x77\x43\x6f\x6e\x74\x65\x6e\x74','\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','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x6d\x65\x73\x73\x61\x67\x65','\x6c\x6f\x61\x64\x55\x6e\x69\x74\x65\x4f\x70\x65\x6e\x43\x61\x72\x64','\x73\x65\x74\x4d\x69\x78\x4e\x69\x63\x6b','\x75\x6e\x69\x74\x65\x4f\x70\x65\x6e\x43\x61\x72\x64\x4f\x6e\x65','\x63\x68\x65\x63\x6b\x4f\x70\x65\x6e\x43\x61\x72\x64','\x73\x75\x63\x63\x65\x73\x73','\x64\x61\x74\x61','\x73\x74\x61\x74\x75\x73','\x69\x73\x4f\x70\x65\x6e\x43\x61\x72\x64','\x72\x65\x6d\x61\x72\x6b','\x69\x6e\x64\x65\x78\x4f\x66','\u7ed1\u5b9a\u6210\u529f','\x63\x75\x73\x41\x63\x74\x69\x76\x69\x74\x79','\x62\x75\x79\x65\x72\x4e\x69\x63\x6b','\x6d\x69\x73\x73\x69\x6f\x6e\x43\x75\x73\x74\x6f\x6d\x65\x72','\x63\x75\x73\x53\x68\x6f\x70\x73','\u4e0d\u662f\u4f1a\u5458','\x75\x6e\x69\x74\x65\x4f\x70\x65\x6e\x43\x61\x72','\u6211\u7684\u5956\u54c1\uff1a','\x6c\x69\x73\x74','\x61\x77\x61\x72\x64\x44\x65\x73','\x61\x77\x61\x72\x64\x4e\x61\x6d\x65','\u9080\u8bf7\u597d\u53cb\x28','\u9080\u8bf7\u4eba\u6570\x28','\x69\x6e\x76\x69\x74\x65\x64\x4c\x6f\x67\x4c\x69\x73\x74','\x74\x6f\x74\x61\x6c','\x65\x72\x72\x6f\x72\x4d\x65\x73\x73\x61\x67\x65','\x2d\x3e\x20','\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','\x4f\x72\x69\x67\x69\x6e','\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\x65','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e\x3b\x20\x63\x68\x61\x72\x73\x65\x74\x3d\x75\x74\x66\x2d\x38','\x43\x6f\x6f\x6b\x69\x65','\x32\x2e\x30','\x70\x61\x72\x61\x6d\x73','\x61\x64\x6d\x4a\x73\x6f\x6e','\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','\x73\x74\x72\x69\x6e\x67','\u8bf7\u52ff\u968f\u610f\u5728\x42\x6f\x78\x4a\x73\u8f93\u5165\u6846\u4fee\u6539\u5185\u5bb9\x0a\u5efa\u8bae\u901a\u8fc7\u811a\u672c\u53bb\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65','\x6a\x73\x6a\x79\x54\x69\x61\x6d\x62\x69\x56\x2e\x63\x43\x6f\x4e\x68\x6d\x72\x2e\x70\x76\x4c\x36\x42\x58\x77\x56\x3d\x3d'];var _0x2918=function(_0x368bc8,_0x4dc121){_0x368bc8=~~'0x'['concat'](_0x368bc8);var _0xcf701c=_0x74b7[_0x368bc8];return _0xcf701c;};(function(_0x4f455d,_0x4d1f05){var _0x4e8d6e=0x0;for(_0x4d1f05=_0x4f455d['shift'](_0x4e8d6e>>0x2);_0x4d1f05&&_0x4d1f05!==(_0x4f455d['pop'](_0x4e8d6e>>0x3)+'')['replace'](/[yTbVCNhrpLBXwV=]/g,'');_0x4e8d6e++){_0x4e8d6e=_0x4e8d6e^0xaf585;}}(_0x74b7,_0x2918));let cookiesArr=[],cookie='';if($[_0x2918('0')]()){Object[_0x2918('1')](jdCookieNode)[_0x2918('2')](_0x1c351c=>{cookiesArr[_0x2918('3')](jdCookieNode[_0x1c351c]);});if(process[_0x2918('4')][_0x2918('5')]&&process[_0x2918('4')][_0x2918('5')]===_0x2918('6'))console[_0x2918('7')]=()=>{};}else{cookiesArr=[$[_0x2918('8')](_0x2918('9')),$[_0x2918('8')](_0x2918('a')),...jsonParse($[_0x2918('8')](_0x2918('b'))||'\x5b\x5d')[_0x2918('c')](_0x280fe7=>_0x280fe7[_0x2918('d')])][_0x2918('e')](_0x16aeb6=>!!_0x16aeb6);}guaopencard_addSku=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('f')]?process[_0x2918('4')][_0x2918('f')]:''+guaopencard_addSku:$[_0x2918('8')](_0x2918('f'))?$[_0x2918('8')](_0x2918('f')):''+guaopencard_addSku;guaopencard_addSku=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('10')]?process[_0x2918('4')][_0x2918('10')]:''+guaopencard_addSku:$[_0x2918('8')](_0x2918('10'))?$[_0x2918('8')](_0x2918('10')):''+guaopencard_addSku;guaopencard=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('11')]?process[_0x2918('4')][_0x2918('11')]:''+guaopencard:$[_0x2918('8')](_0x2918('11'))?$[_0x2918('8')](_0x2918('11')):''+guaopencard;guaopencard=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('12')]?process[_0x2918('4')][_0x2918('12')]:''+guaopencard:$[_0x2918('8')](_0x2918('12'))?$[_0x2918('8')](_0x2918('12')):''+guaopencard;guaopenwait=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('13')]?process[_0x2918('4')][_0x2918('13')]:''+guaopenwait:$[_0x2918('8')](_0x2918('13'))?$[_0x2918('8')](_0x2918('13')):''+guaopenwait;guaopenwait=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('14')]?process[_0x2918('4')][_0x2918('14')]:''+guaopenwait:$[_0x2918('8')](_0x2918('14'))?$[_0x2918('8')](_0x2918('14')):''+guaopenwait;guaopenwait=parseInt(guaopenwait,0xa)||0x0;guaopencard_draw=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('15')]?process[_0x2918('4')][_0x2918('15')]:guaopencard_draw:$[_0x2918('8')](_0x2918('15'))?$[_0x2918('8')](_0x2918('15')):guaopencard_draw;guaopencard_draw=$[_0x2918('0')]()?process[_0x2918('4')][_0x2918('16')]?process[_0x2918('4')][_0x2918('16')]:guaopencard_draw:$[_0x2918('8')](_0x2918('16'))?$[_0x2918('8')](_0x2918('16')):guaopencard_draw;guaopenwait=parseInt(guaopenwait,0xa)||0x0;allMessage='';message='';$[_0x2918('17')]=![];$[_0x2918('18')]=![];$[_0x2918('19')]=![];let lz_jdpin_token_cookie='';let activityCookie='';!(async()=>{if($[_0x2918('0')]()){if(guaopencard+''!=_0x2918('1a')){console[_0x2918('7')](_0x2918('1b'));}if(guaopencard+''!=_0x2918('1a')){return;}}if(!cookiesArr[0x0]){$[_0x2918('1c')]($[_0x2918('1d')],_0x2918('1e'),_0x2918('1f'),{'open-url':_0x2918('1f')});return;}$[_0x2918('20')]=_0x2918('21');$[_0x2918('22')]=_0x2918('23');$[_0x2918('24')]=_0x2918('25');$[_0x2918('26')]='';$[_0x2918('27')]=_0x2918('28');for(let _0x43424c=0x0;_0x43424c<cookiesArr[_0x2918('29')];_0x43424c++){cookie=cookiesArr[_0x43424c];if(cookie){$[_0x2918('2a')]=decodeURIComponent(cookie[_0x2918('2b')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x2918('2b')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x2918('2c')]=_0x43424c+0x1;message='';$[_0x2918('2d')]=0x0;$[_0x2918('17')]=![];$[_0x2918('2e')]='';console[_0x2918('7')](_0x2918('2f')+$[_0x2918('2c')]+'\u3011'+($[_0x2918('2e')]||$[_0x2918('2a')])+_0x2918('30'));await getUA();await run();if(_0x43424c==0x0&&!$[_0x2918('31')])break;if($[_0x2918('18')]||$[_0x2918('19')])break;}}if($[_0x2918('18')]){let _0x48c066=_0x2918('32');$[_0x2918('1c')]($[_0x2918('1d')],'',''+_0x48c066);if($[_0x2918('0')]())await notify[_0x2918('33')](''+$[_0x2918('1d')],''+_0x48c066);}})()[_0x2918('34')](_0x4693d5=>$[_0x2918('35')](_0x4693d5))[_0x2918('36')](()=>$[_0x2918('37')]());async function run(){try{$[_0x2918('38')]=!![];$[_0x2918('39')]=0x0;lz_jdpin_token_cookie='';$[_0x2918('3a')]='';$[_0x2918('3b')]='';$[_0x2918('31')]='';let _0x3a4c56=![];if($[_0x2918('19')])return;if($[_0x2918('18')]){console[_0x2918('7')](_0x2918('3c'));return;}await takePostRequest(_0x2918('3d'));if($[_0x2918('3a')]==''){console[_0x2918('7')](_0x2918('3e'));return;}await takePostRequest(_0x2918('3f'));if(Date[_0x2918('40')]()>$[_0x2918('39')]){$[_0x2918('31')]='';$[_0x2918('19')]=!![];console[_0x2918('7')](_0x2918('41'));return;}if($[_0x2918('31')]==''){console[_0x2918('7')](_0x2918('42'));return;}$[_0x2918('43')]=0x0;$[_0x2918('44')]=[];await takePostRequest('\u7ed1\u5b9a');await takePostRequest(_0x2918('45'));for(o of $[_0x2918('44')]){$[_0x2918('46')]=_0x2918('47');if(o[_0x2918('48')]!=!![]){$[_0x2918('47')]=![];$[_0x2918('49')]=o[_0x2918('22')];await takePostRequest(_0x2918('4a'));await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0xbb8+0xbb8,0xa));if($[_0x2918('47')]==!![]){await joinShop();await takePostRequest(_0x2918('3f'));await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0xbb8+0xbb8,0xa));}$[_0x2918('49')]='';}}$[_0x2918('49')]='';if($[_0x2918('4d')]===0x0){$[_0x2918('46')]=_0x2918('4e');await takePostRequest(_0x2918('4a'));await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0x7d0+0xbb8,0xa));}else{console[_0x2918('7')](_0x2918('4f'));}if(guaopencard_addSku+''==_0x2918('1a')){$[_0x2918('46')]=_0x2918('50');await takePostRequest(_0x2918('4a'));await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0x7d0+0xbb8,0xa));}else{console[_0x2918('7')](_0x2918('51'));}await takePostRequest(_0x2918('3f'));if(guaopencard_draw+''!=='\x30'){$[_0x2918('52')]=!![];let _0x3c965f=parseInt($[_0x2918('53')],0xa);guaopencard_draw=parseInt(guaopencard_draw,0xa);if(_0x3c965f>guaopencard_draw)_0x3c965f=guaopencard_draw;console[_0x2918('7')](_0x2918('54')+_0x3c965f);for(m=0x1;_0x3c965f--;m++){console[_0x2918('7')]('\u7b2c'+m+_0x2918('55'));await takePostRequest('\u62bd\u5956');if($[_0x2918('52')]==![])break;if(Number(_0x3c965f)<=0x0)break;if(m>=0xa){console[_0x2918('7')](_0x2918('56'));break;}await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0x7d0+0x7d0,0xa));}}else console[_0x2918('7')](_0x2918('57'));await takePostRequest(_0x2918('58'));await takePostRequest(_0x2918('59'));console[_0x2918('7')]($[_0x2918('31')]);console[_0x2918('7')](_0x2918('5a')+$[_0x2918('27')]);if($[_0x2918('2c')]==0x1){$[_0x2918('27')]=$[_0x2918('31')];console[_0x2918('7')](_0x2918('5b')+$[_0x2918('27')]);}await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0x3e8+0x1388,0xa));if(_0x3a4c56)await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0x3e8+0x2710,0xa));if(guaopenwait){if($[_0x2918('2c')]!=cookiesArr[_0x2918('29')]){console[_0x2918('7')]('\u7b49\u5f85'+guaopenwait+'\u79d2');await $[_0x2918('4b')](parseInt(guaopenwait,0xa)*0x3e8);}}else{if($[_0x2918('2c')]%0x3==0x0)console[_0x2918('7')](_0x2918('5c'));if($[_0x2918('2c')]%0x3==0x0)await $[_0x2918('4b')](parseInt(Math[_0x2918('4c')]()*0x1388+0xea60,0xa));}}catch(_0x55523e){console[_0x2918('7')](_0x55523e);}}async function takePostRequest(_0x114aec){if($[_0x2918('18')])return;let _0x58bd1e=_0x2918('5d');let _0x44b7b7='';let _0x17084a=_0x2918('5e');let _0x3b059d='';switch(_0x114aec){case _0x2918('3d'):url=_0x2918('5f');_0x44b7b7=_0x2918('60');break;case _0x2918('3f'):url=_0x58bd1e+_0x2918('61')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'jdToken':$[_0x2918('3a')],'source':'\x30\x31','inviteNick':$[_0x2918('27')]||''};if($[_0x2918('49')])_0x3b059d={..._0x3b059d,'shopId':''+$[_0x2918('49')]};_0x44b7b7=taskPostUrl(_0x2918('62'),_0x3b059d);break;case _0x2918('45'):url=_0x58bd1e+_0x2918('63')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={};_0x44b7b7=taskPostUrl(_0x2918('64'),_0x3b059d);break;case'\u7ed1\u5b9a':url=_0x58bd1e+_0x2918('65')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'missionType':_0x2918('66'),'inviterNick':$[_0x2918('27')]||''};_0x44b7b7=taskPostUrl(_0x2918('67'),_0x3b059d);break;case _0x2918('4a'):url=_0x58bd1e+_0x2918('65')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'missionType':$[_0x2918('46')]};if($[_0x2918('49')])_0x3b059d={..._0x3b059d,'shopId':$[_0x2918('49')]};_0x44b7b7=taskPostUrl(_0x2918('67'),_0x3b059d);break;case'\u62bd\u5956':url=_0x58bd1e+_0x2918('68')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'dataType':_0x2918('69'),'usedGameNum':'\x32'};_0x44b7b7=taskPostUrl(_0x2918('6a'),_0x3b059d);break;case _0x2918('6b'):url=_0x58bd1e+_0x2918('6c')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'actId':$[_0x2918('24')],'missionType':_0x2918('6d')};_0x44b7b7=taskPostUrl(_0x2918('6e'),_0x3b059d);break;case _0x2918('6f'):url=_0x58bd1e+_0x2918('70')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'actId':$[_0x2918('24')],'missionType':_0x2918('6f')};_0x44b7b7=taskPostUrl(_0x2918('71'),_0x3b059d);break;case _0x2918('58'):url=_0x58bd1e+_0x2918('72')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'pageNo':0x1,'pageSize':0x270f};_0x44b7b7=taskPostUrl(_0x2918('73'),_0x3b059d);break;case _0x2918('59'):url=_0x58bd1e+_0x2918('74')+($[_0x2918('31')]||$[_0x2918('26')]||'');_0x3b059d={'inviteListRequest':{'actId':$[_0x2918('24')],'userId':0x9d2723,'missionType':_0x2918('75'),'inviteType':0x1,'buyerNick':$[_0x2918('31')]||''}};_0x44b7b7=taskPostUrl(_0x2918('76'),_0x3b059d);break;default:console[_0x2918('7')]('\u9519\u8bef'+_0x114aec);}let _0x16c0e0=getPostRequest(url,_0x44b7b7,_0x17084a);return new Promise(async _0xba35c6=>{$[_0x2918('77')](_0x16c0e0,(_0x54e127,_0x1d5215,_0x1fe6e5)=>{try{if(_0x54e127){if(_0x1d5215&&_0x1d5215[_0x2918('78')]&&_0x1d5215[_0x2918('78')]==0x1ed){console[_0x2918('7')](_0x2918('3c'));$[_0x2918('18')]=!![];}console[_0x2918('7')](''+$[_0x2918('79')](_0x54e127,_0x54e127));console[_0x2918('7')](_0x114aec+_0x2918('7a'));}else{dealReturn(_0x114aec,_0x1fe6e5);}}catch(_0x33c738){console[_0x2918('7')](_0x33c738,_0x1d5215);}finally{_0xba35c6();}});});}async function dealReturn(_0x46ade9,_0x5550c5){let _0x5a87f8='';try{if(_0x46ade9!=_0x2918('7b')||_0x46ade9!=_0x2918('7c')){if(_0x5550c5){_0x5a87f8=JSON[_0x2918('7d')](_0x5550c5);}}}catch(_0xe496b){console[_0x2918('7')](_0x46ade9+_0x2918('7e'));console[_0x2918('7')](_0x5550c5);$[_0x2918('52')]=![];}try{let _0xdfaa3f='';switch(_0x46ade9){case _0x2918('3d'):if(typeof _0x5a87f8==_0x2918('7f')){if(_0x5a87f8[_0x2918('80')]==0x0){if(typeof _0x5a87f8[_0x2918('81')]!=_0x2918('82'))$[_0x2918('3a')]=_0x5a87f8[_0x2918('81')];}else if(_0x5a87f8[_0x2918('83')]){console[_0x2918('7')](_0x46ade9+'\x20'+(_0x5a87f8[_0x2918('83')]||''));}else{console[_0x2918('7')](_0x5550c5);}}else{console[_0x2918('7')](_0x5550c5);}break;case _0x2918('7b'):case _0x2918('7c'):break;case _0x2918('3f'):case _0x2918('4a'):case _0x2918('45'):case _0x2918('84'):case _0x2918('85'):case _0x2918('86'):case _0x2918('87'):case _0x2918('6b'):case _0x2918('6f'):case _0x2918('58'):case _0x2918('59'):case'\u62bd\u5956':_0xdfaa3f='';if(_0x46ade9==_0x2918('6b'))_0xdfaa3f='\u5173\u6ce8';if(_0x46ade9==_0x2918('6f'))_0xdfaa3f='\u52a0\u8d2d';if(typeof _0x5a87f8==_0x2918('7f')){if(_0x5a87f8[_0x2918('88')]&&_0x5a87f8[_0x2918('88')]===!![]&&_0x5a87f8[_0x2918('89')]){_0x5a87f8=_0x5a87f8[_0x2918('89')];if(_0x5a87f8[_0x2918('8a')]&&_0x5a87f8[_0x2918('8a')]==0xc8){if(_0x46ade9!=_0x2918('85')&&(_0x5a87f8[_0x2918('1c')]||_0x5a87f8[_0x2918('89')][_0x2918('8b')]||_0x5a87f8[_0x2918('89')][_0x2918('8c')]))console[_0x2918('7')](''+(_0xdfaa3f&&_0xdfaa3f+'\x3a'||'')+(_0x5a87f8[_0x2918('1c')]||_0x5a87f8[_0x2918('89')][_0x2918('8b')]||_0x5a87f8[_0x2918('89')][_0x2918('8c')]||''));if(_0x46ade9==_0x2918('3f')){if(_0x5a87f8[_0x2918('1c')]||_0x5a87f8[_0x2918('89')][_0x2918('8b')]){if((_0x5a87f8[_0x2918('1c')]||_0x5a87f8[_0x2918('89')][_0x2918('8b')]||'')[_0x2918('8d')](_0x2918('8e'))>-0x1)$[_0x2918('43')]=0x1;}if(_0x5a87f8[_0x2918('89')]){$[_0x2918('39')]=_0x5a87f8[_0x2918('89')][_0x2918('8f')][_0x2918('39')]||0x0;$[_0x2918('31')]=_0x5a87f8[_0x2918('89')][_0x2918('90')]||'';$[_0x2918('53')]=_0x5a87f8[_0x2918('89')][_0x2918('91')][_0x2918('53')]||0x0;$[_0x2918('4d')]=_0x5a87f8[_0x2918('89')][_0x2918('91')][_0x2918('4d')]||0x0;}}else if(_0x46ade9==_0x2918('45')){$[_0x2918('44')]=_0x5a87f8[_0x2918('89')][_0x2918('92')]||[];}else if(_0x46ade9==_0x2918('4a')){if(_0x5a87f8[_0x2918('89')][_0x2918('8c')][_0x2918('8d')](_0x2918('93'))>-0x1){$[_0x2918('47')]=!![];}else{$[_0x2918('47')]=![];}}else if(_0x46ade9==_0x2918('86')){$[_0x2918('94')]=_0x5a87f8[_0x2918('1c')]||_0x5a87f8[_0x2918('89')][_0x2918('1c')]||'';}else if(_0x46ade9==_0x2918('58')){console[_0x2918('7')](_0x2918('95'));let _0x8551a5=0x0;let _0x11c71f=0x0;for(let _0x1e04dd in _0x5a87f8[_0x2918('89')][_0x2918('96')]||[]){let _0x6e8084=_0x5a87f8[_0x2918('89')][_0x2918('96')][_0x1e04dd];if(_0x6e8084[_0x2918('97')]=='\x32\x30'){_0x8551a5++;_0x11c71f=_0x6e8084[_0x2918('97')];}else{console[_0x2918('7')](''+_0x6e8084[_0x2918('98')]);}}if(_0x8551a5>0x0)console[_0x2918('7')](_0x2918('99')+_0x8551a5+'\x29\x3a'+(_0x8551a5*parseInt(_0x11c71f,0xa)||0x1e)+'\u4eac\u8c46');}else if(_0x46ade9==_0x2918('59')){console[_0x2918('7')](_0x2918('9a')+_0x5a87f8[_0x2918('89')][_0x2918('9b')][_0x2918('9c')]+'\x29');}}else if(_0x5a87f8[_0x2918('1c')]){console[_0x2918('7')]((_0xdfaa3f||_0x46ade9)+'\x20'+(_0x5a87f8[_0x2918('1c')]||''));}else{console[_0x2918('7')]((_0xdfaa3f||_0x46ade9)+'\x20'+_0x5550c5);}}else if(_0x5a87f8[_0x2918('9d')]){console[_0x2918('7')]((_0xdfaa3f||_0x46ade9)+'\x20'+(_0x5a87f8[_0x2918('9d')]||''));}else{console[_0x2918('7')]((_0xdfaa3f||_0x46ade9)+'\x20'+_0x5550c5);}}else{console[_0x2918('7')]((_0xdfaa3f||_0x46ade9)+'\x20'+_0x5550c5);}break;default:console[_0x2918('7')]((_0xdfaa3f||_0x46ade9)+_0x2918('9e')+_0x5550c5);}if(typeof _0x5a87f8==_0x2918('7f')){if(_0x5a87f8[_0x2918('9d')]){if(_0x5a87f8[_0x2918('9d')][_0x2918('8d')]('\u706b\u7206')>-0x1){$[_0x2918('17')]=!![];}}}}catch(_0x3dee90){console[_0x2918('7')](_0x3dee90);}}function getPostRequest(_0xce5f3b,_0xf8d360,_0x51bf90=_0x2918('5e')){let _0x3e221f={'Accept':_0x2918('9f'),'Accept-Encoding':_0x2918('a0'),'Accept-Language':_0x2918('a1'),'Connection':_0x2918('a2'),'Content-Type':_0x2918('a3'),'Cookie':cookie,'User-Agent':$['\x55\x41'],'X-Requested-With':_0x2918('a4')};if(_0xce5f3b[_0x2918('8d')](_0x2918('5d'))>-0x1){_0x3e221f[_0x2918('a5')]=_0x2918('5d');_0x3e221f[_0x2918('a6')]=_0x2918('a7');delete _0x3e221f[_0x2918('a8')];}return{'\x75\x72\x6c':_0xce5f3b,'\x6d\x65\x74\x68\x6f\x64':_0x51bf90,'\x68\x65\x61\x64\x65\x72\x73':_0x3e221f,'\x62\x6f\x64\x79':_0xf8d360,'\x74\x69\x6d\x65\x6f\x75\x74':0x7530};}function taskPostUrl(_0x21bd60,_0x55bd13){const _0x51eb0a={'jsonRpc':_0x2918('a9'),'params':{'commonParameter':{'appkey':$[_0x2918('20')],'m':_0x2918('5e'),'timestamp':Date[_0x2918('40')](),'userId':$[_0x2918('22')]},'admJson':{'actId':$[_0x2918('24')],'userId':$[_0x2918('22')],..._0x55bd13,'method':_0x21bd60,'buyerNick':$[_0x2918('31')]||''}}};if(_0x21bd60[_0x2918('8d')](_0x2918('59'))>-0x1){delete _0x51eb0a[_0x2918('aa')][_0x2918('ab')][_0x2918('24')];}return $[_0x2918('79')](_0x51eb0a,_0x51eb0a);}async function getUA(){$['\x55\x41']=_0x2918('ac')+randomString(0x28)+_0x2918('ad');}function randomString(_0x32f71f){_0x32f71f=_0x32f71f||0x20;let _0x3c82af=_0x2918('ae'),_0x549808=_0x3c82af[_0x2918('29')],_0x58c047='';for(i=0x0;i<_0x32f71f;i++)_0x58c047+=_0x3c82af[_0x2918('af')](Math[_0x2918('b0')](Math[_0x2918('4c')]()*_0x549808));return _0x58c047;}function jsonParse(_0x14bf7c){if(typeof _0x14bf7c==_0x2918('b1')){try{return JSON[_0x2918('7d')](_0x14bf7c);}catch(_0x37b1d9){console[_0x2918('7')](_0x37b1d9);$[_0x2918('1c')]($[_0x2918('1d')],'',_0x2918('b2'));return[];}}};_0xodh='jsjiami.com.v6';
function jsonParse(str) {
if (typeof str == "string") {
try {
return JSON.parse(str);
} catch (e) {
console.log(e);
$.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
return [];
}
}
}
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();
}
})
})
}
// 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)}