-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp_ds.js
386 lines (365 loc) · 26.1 KB
/
app_ds.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
/*
项目名称:达赏
项目注册地址:
app地址:http://m.tokshine.com/h5/
交易app地址:http://www.xiangxincapital.com
邀请码:RPRR47
声明:脚本只能作者下级才能跑以及你自己号的自己下级跑(后者未更新)
零撸玩法:
下载app → 登录 → 填邀请码 → 自行吧能做到任务做做(不做也可以,反正没有钻石送)
实名认证(需要人脸) → 进 交易app 选达赏 登录(同app账号同步) → 确权 → 收款方式认证 → 业绩激励 → 申请业绩激励 → 选10股期,确定申请
然后每在app看5分钟视频,得5克拉钻石(第二天释放前一天钻石)
5分钟视频后确保交易app的 业绩激励 上面显示今日月绩进度是否正确
如需要有啥奖励自行查看 业绩激励 界面右上角的规则
399元玩法:
自行查看:https://www.yuque.com/docs/share/622a0d2c-53f6-441c-bad0-9418287eb20b
注:走399元邀请码不支持使用脚本,走我码再走399元的我也没能力扶持,除非有客观收入会联系下级发放
变现:
在交易app里面出售释放出来的股权(可官方回收和自行挂单)
一天2-3次,刷1个小时应该够,不够自己看时长计算
cron 0-59/1 8,17 * * *
脚本地址:https://gitee.com/soy-tool/app-script/raw/master/app_ds.js
变量配置文件地址:https://gitee.com/soy-tool/app-script/raw/master/ds_variable_data.js
*/
const $ = new Env('【达赏】版本:22/03/03_0');
// @grant require
const notify = $.isNode() ? require('./sendNotify') : '';
var _0xodA='jsjiami.com.v6',_0xodA_=['_0xodA'],_0x440e=[_0xodA,'\x69\x73\x4e\x6f\x64\x65','\x2e\x2f\x72\x61\x77\x5f\x6d\x61\x73\x74\x65\x72\x5f\x64\x73\x5f\x76\x61\x72\x69\x61\x62\x6c\x65\x5f\x64\x61\x74\x61\x2e\x6a\x73','\x63\x6f\x64\x65','\x6c\x6f\x67','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\u3011\uff1a\u914d\u7f6e\u6587\u4ef6\u6570\u636e\u6709\u8bef\x2c\u8bf7\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u7684\u6b63\u786e\u6027','\x0a\x3d\x3d\x3d\x20\u811a\u672c\u6267\u884c\x20\x2d\x20\u5317\u4eac\u65f6\u95f4\uff1a','\x67\x65\x74\x54\x69\x6d\x65','\x67\x65\x74\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x4f\x66\x66\x73\x65\x74','\x74\x6f\x4c\x6f\x63\x61\x6c\x65\x53\x74\x72\x69\x6e\x67','\x20\x3d\x3d\x3d\x0a','\x3d\x3d\x3d\u3010\u5171\x20','\x64\x73\x5f\x76\x61\x72\x69\x61\x62\x6c\x65\x5f\x64\x61\x74\x61','\x75\x73\x65\x72\x5f\x64\x61\x74\x61','\x6c\x65\x6e\x67\x74\x68','\x20\u4e2a\u8d26\u53f7\u3011\x3d\x3d\x3d\x0a','\x75\x73\x65\x72\x5f\x49\x44','\x74\x6f\x6b\x65\x6e','\x69\x6e\x64\x65\x78','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x6e\x61\x6d\x65','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\x0a\u5f00\u59cb\u3010\u7b2c\x20','\x20\u4e2a\u8d26\u53f7\u4efb\u52a1\u3011','\x75\x73\x65\x72\x2f\x75\x73\x65\x72\x49\x6e\x66\x6f\x2f\x67\x65\x74\x55\x73\x65\x72\x42\x79\x49\x64','\x67\x65\x74','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\x2d\x2d\x2d\u8d26\u53f7\x20','\x20\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x70\x61\x72\x73\x65','\x64\x61\x74\x61','\x70\x61\x72\x65\x6e\x74\x55\x73\x65\x72\x49\x64','\x31\x33\x38\x39\x39\x37\x37','\x20\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\x0a\x2d\x2d\x2d\u8be5\u811a\u672c\u5f8b\u5c5e\u4f5c\u8005\u4e0b\u7ea7\u4f7f\u7528\x0a\x2d\x2d\x2d\u8be5\u8d26\u6237\u975e\u4f5c\u8005\u4e0b\u7ea7\x0a\x2d\x2d\x2d\u4f5c\u8005\u9080\u8bf7\u7801\u4e3a\uff1a\x52\x50\x52\x52\x34\x37','\x20\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\x28\u8d26\u53f7\u975e\u4f5c\u8005\u4e0b\u7ea7\x29\u8be5\u8d26\u53f7\u975e\u4f60\u81ea\u5df1\u8d26\u53f7\u7684\u4e0b\u7ea7','\x20\u5237\u65f6\u957f\u3011\x3a\x20','\x6d\x65\x73\x73\x61\x67\x65','\x76\x6f\x64\x2f\x76\x69\x64\x65\x6f\x2f\x67\x65\x74\x52\x65\x63\x6f\x6d\x6d\x65\x6e\x64\x4c\x69\x73\x74\x3f\x70\x61\x67\x65\x3d\x33\x26\x73\x69\x7a\x65\x3d\x39','\x20\u89c6\u9891\u5217\u8868\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x66\x6c\x6f\x6f\x72','\x72\x61\x6e\x64\x6f\x6d','\x76\x6f\x64','\x20\u89c6\u9891\u5217\u8868\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x63\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x2f\x63\x6f\x69\x6e\x4d\x69\x6e\x75\x74\x65\x44\x72\x61\x77\x41\x6d\x6f\x75\x6e\x74\x42\x79\x55\x73\x65\x72\x49\x64\x3f\x73\x65\x63\x6f\x6e\x64\x3d\x37\x32','\x70\x6f\x73\x74','\x20\u89c2\u770b\u89c6\u9891\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u89c2\u770b\u89c6\u9891\u3011\x3a\x20\u5904\u7406\u6210\u529f','\x7b\x22\x64\x61\x74\x61\x22\x3a\x22\x30\x2c\x32\x3b\x22\x2c\x22\x73\x65\x71\x75\x65\x6e\x63\x65\x22\x3a\x33\x32\x2c\x22\x74\x6f\x6b\x65\x6e\x22\x3a\x22','\x20\u89c2\u770b\u89c6\u9891\u3011\x3a\x20','\x76\x6f\x64\x2f\x77\x61\x74\x63\x68\x2f\x67\x65\x74\x54\x6f\x6b\x65\x6e\x2f','\x20\u83b7\u53d6\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u83b7\u53d6\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20','\x76\x6f\x64\x2f\x77\x61\x74\x63\x68\x2f\x77\x61\x74\x63\x68\x52\x65\x70\x6f\x72\x74','\x20\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20','\x76\x6f\x64\x2f\x77\x61\x74\x63\x68\x2f\x74\x6f\x64\x61\x79\x54\x6f\x74\x61\x6c\x44\x75\x72\x61\x74\x69\x6f\x6e','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u957f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u3011\x3a\x20\u603b\u65f6\u957f\x20','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x63\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x2f\x6c\x69\x73\x74\x43\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x42\x79\x55\x73\x65\x72\x49\x64\x47\x72\x6f\x75\x70\x42\x79\x4f\x77\x6e\x44\x61\x74\x65','\x7b\x22\x70\x61\x67\x65\x22\x3a\x31\x2c\x22\x73\x69\x7a\x65\x22\x3a\x31\x30\x7d','\x20\u94bb\u77f3\u5217\u8868\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x73\x74\x61\x74\x75\x73','\x20\u94bb\u77f3\u5217\u8868\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x63\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x2f\x75\x70\x43\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x53\x74\x61\x74\x65\x3f\x69\x64\x3d','\x20\u9886\u53d6\u94bb\u77f3\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u9886\u53d6\u94bb\u77f3\u3011\x3a\x20\u6210\u529f','\x20\u9886\u53d6\u94bb\u77f3\u3011\x3a\x20','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x77\x2e\x74\x6f\x6b\x73\x68\x69\x6e\x65\x2e\x63\x6f\x6d\x2f\x61\x70\x70\x2f','\x44\x61\x72\x74\x2f\x32\x2e\x31\x35\x20\x28\x64\x61\x72\x74\x3a\x69\x6f\x29','\x67\x7a\x69\x70','\x67\x77\x2e\x74\x6f\x6b\x73\x68\x69\x6e\x65\x2e\x63\x6f\x6d','\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','\x6a\x64\x73\x68\x6a\x69\x61\x6d\x69\x2e\x66\x63\x6f\x59\x6d\x58\x42\x2e\x76\x71\x36\x74\x49\x42\x51\x6b\x41\x41\x3d\x3d'];function _0x2d56(_0x2b2325,_0x41f407){_0x2b2325=~~'0x'['concat'](_0x2b2325['slice'](0x0));var _0x4807d7=_0x440e[_0x2b2325];return _0x4807d7;};(function(_0x24db3d,_0x58ebcf){var _0xdd071=0x0;for(_0x58ebcf=_0x24db3d['shift'](_0xdd071>>0x2);_0x58ebcf&&_0x58ebcf!==(_0x24db3d['pop'](_0xdd071>>0x3)+'')['replace'](/[dhfYXBqtIBQkAA=]/g,'');_0xdd071++){_0xdd071=_0xdd071^0xd4e7c;}}(_0x440e,_0x2d56));const fs=require('\x66\x73');const ds_variable=$[_0x2d56('0')]()?require(_0x2d56('1')):'';let UserId='';!(async()=>{if($[_0x2d56('0')]()){if(ds_variable[_0x2d56('2')]!==0xc8){console[_0x2d56('3')](_0x2d56('4'));return;}console[_0x2d56('3')](_0x2d56('5')+new Date(new Date()[_0x2d56('6')]()+new Date()[_0x2d56('7')]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[_0x2d56('8')]()+_0x2d56('9'));console[_0x2d56('3')](_0x2d56('a')+ds_variable[_0x2d56('b')][_0x2d56('c')][_0x2d56('d')]+_0x2d56('e'));subTitle='';for(i=0x0;i<ds_variable[_0x2d56('b')][_0x2d56('c')][_0x2d56('d')];i++){let _0x380ff0=ds_variable[_0x2d56('b')][_0x2d56('c')][i];userid=_0x380ff0[_0x2d56('f')];token=_0x380ff0[_0x2d56('10')];$[_0x2d56('11')]=i+0x1;await implement();};if(notify){if(subTitle){await notify[_0x2d56('12')]($[_0x2d56('13')],subTitle);}}}})()[_0x2d56('14')](_0x109d2a=>$[_0x2d56('15')](_0x109d2a))[_0x2d56('16')](()=>$[_0x2d56('17')]());async function implement(){console[_0x2d56('3')](_0x2d56('18')+$[_0x2d56('11')]+_0x2d56('19'));await UserById();}function UserById(){let _0x136d83=Get_request(_0x2d56('1a'));return new Promise((_0xc75732,_0x5a07b9)=>{$[_0x2d56('1b')](_0x136d83,async(_0x16e5e9,_0x2ee786,_0x5d34ef)=>{try{if(_0x16e5e9){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('1d'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('1d');}else{let _0x36978c=JSON[_0x2d56('1e')](_0x5d34ef);if(_0x36978c[_0x2d56('2')]==0xc8){if($[_0x2d56('11')]==0x1){if(_0x36978c[_0x2d56('1f')][_0x2d56('20')]!=_0x2d56('21')){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('22'));return;}else{UserId=_0x36978c[_0x2d56('1f')]['\x69\x64'];await RecommendList();await listCoin();}}else{if(_0x36978c[_0x2d56('1f')][_0x2d56('20')]==UserId){await RecommendList();await listCoin();}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('23'));}}}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('24')+_0x36978c[_0x2d56('25')]);}}}catch(_0x402e16){console[_0x2d56('3')](_0x402e16,_0x2ee786);}finally{_0xc75732();}});});}function RecommendList(){let _0x4d842a=Get_request(_0x2d56('26'));return new Promise((_0x2b9327,_0x1371de)=>{$[_0x2d56('1b')](_0x4d842a,async(_0x4e1ff8,_0x41468f,_0x3e847d)=>{try{if(_0x4e1ff8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('27'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('27');}else{let _0x36ca1c=JSON[_0x2d56('1e')](_0x3e847d);if(_0x36ca1c[_0x2d56('2')]==0xc8){let _0x1fe7d3=Math[_0x2d56('28')](Math[_0x2d56('29')]()*0x9);await getToken(_0x36ca1c[_0x2d56('1f')][_0x1fe7d3][_0x2d56('2a')]['\x69\x64']);}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2b')+_0x36ca1c[_0x2d56('25')]);}}}catch(_0x2d2dd7){console[_0x2d56('3')](_0x2d2dd7,_0x41468f);}finally{_0x2b9327();}});});}function DrawRecord(_0x178389){let _0x514c83=Post_request(_0x2d56('2c'),'');return new Promise((_0x4990e3,_0x2eddf6)=>{$[_0x2d56('2d')](_0x514c83,async(_0x2cd999,_0xac7315,_0x2bc298)=>{try{if(_0x2cd999){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2e'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2e');}else{let _0x3fdff4=JSON[_0x2d56('1e')](_0x2bc298);if(_0x3fdff4[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2f'));await watchReport(_0x2d56('30')+_0x178389+'\x22\x7d');}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('31')+_0x3fdff4[_0x2d56('25')]);}}}catch(_0x4b0e52){console[_0x2d56('3')](_0x4b0e52,_0xac7315);}finally{_0x4990e3();}});});}function getToken(_0xfafa95){let _0x3afbf0=Get_request(_0x2d56('32')+_0xfafa95);return new Promise((_0x1c67ce,_0x13c8e9)=>{$[_0x2d56('1b')](_0x3afbf0,async(_0x14bc9b,_0x133fbd,_0xb0846f)=>{try{if(_0x14bc9b){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('33'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('33');}else{let _0xb71bf0=JSON[_0x2d56('1e')](_0xb0846f);if(_0xb71bf0[_0x2d56('2')]==0xc8){await DrawRecord(_0xb71bf0[_0x2d56('1f')][_0x2d56('10')]);}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('34')+_0xb71bf0[_0x2d56('25')]);}}}catch(_0x2689b4){console[_0x2d56('3')](_0x2689b4,_0x133fbd);}finally{_0x1c67ce();}});});}function watchReport(_0x2e4bbc){let _0x119f90=Post_request(_0x2d56('35'),_0x2e4bbc);return new Promise((_0x2699bb,_0x37f9d9)=>{$[_0x2d56('2d')](_0x119f90,async(_0x20f6b4,_0x225767,_0x13e03d)=>{try{if(_0x20f6b4){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('36'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('36');}else{let _0x4e0af9=JSON[_0x2d56('1e')](_0x13e03d);if(_0x4e0af9[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('37')+_0x4e0af9[_0x2d56('25')]);await todaytime();}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('37')+_0x4e0af9[_0x2d56('25')]);}}}catch(_0x1af1bf){console[_0x2d56('3')](_0x1af1bf,_0x225767);}finally{_0x2699bb();}});});}function todaytime(){let _0xcf51b1=Get_request(_0x2d56('38'));return new Promise((_0x2c4eac,_0x3507b9)=>{$[_0x2d56('1b')](_0xcf51b1,async(_0x2b853b,_0x585ab4,_0x27c878)=>{try{if(_0x2b853b){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('39'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3a');}else{let _0x7a5661=JSON[_0x2d56('1e')](_0x27c878);if(_0x7a5661[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3b')+_0x7a5661[_0x2d56('1f')]+'\x20\u79d2');}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3c')+_0x7a5661[_0x2d56('25')]);}}}catch(_0x558a2a){console[_0x2d56('3')](_0x558a2a,_0x585ab4);}finally{_0x2c4eac();}});});}function listCoin(){let _0x4fa69d=Post_request(_0x2d56('3d'),_0x2d56('3e'));return new Promise((_0x2e772b,_0x50b682)=>{$[_0x2d56('2d')](_0x4fa69d,async(_0x56274e,_0x4c6120,_0x1b9d83)=>{try{if(_0x56274e){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3f'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3f');}else{let _0x3dbbaa=JSON[_0x2d56('1e')](_0x1b9d83);if(_0x3dbbaa[_0x2d56('2')]==0xc8){if(_0x3dbbaa[_0x2d56('1f')]!=null){for(let _0xa62adf of _0x3dbbaa[_0x2d56('1f')][0x0]){if(_0xa62adf[_0x2d56('40')]==0x0){await upCoin(_0xa62adf['\x69\x64']);}}}}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('41')+_0x3dbbaa[_0x2d56('25')]);}}}catch(_0x4270f0){console[_0x2d56('3')](_0x4270f0,_0x4c6120);}finally{_0x2e772b();}});});}function upCoin(_0x5aba6a){let _0x3212e4=Post_request(_0x2d56('42')+_0x5aba6a,'');return new Promise((_0x59f3cd,_0x316730)=>{$[_0x2d56('2d')](_0x3212e4,async(_0x3a8324,_0x1703ed,_0x409de1)=>{try{if(_0x3a8324){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('43'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('43');}else{let _0x5a86cf=JSON[_0x2d56('1e')](_0x409de1);if(_0x5a86cf[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('44'));}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('45')+_0x5a86cf[_0x2d56('25')]);}}}catch(_0x49a2dc){console[_0x2d56('3')](_0x49a2dc,_0x1703ed);}finally{_0x59f3cd();}});});}function Post_request(_0x4b560e,_0x337e3f){return{'\x75\x72\x6c':_0x2d56('46')+_0x4b560e,'\x68\x65\x61\x64\x65\x72\x73':{'user-agent':_0x2d56('47'),'userid':userid,'accept-encoding':_0x2d56('48'),'host':_0x2d56('49'),'authorization':token,'apptype':'\x31','Content-Type':_0x2d56('4a')},'\x62\x6f\x64\x79':_0x337e3f};};function Get_request(_0x5ec1a1){return{'\x75\x72\x6c':_0x2d56('46')+_0x5ec1a1,'\x68\x65\x61\x64\x65\x72\x73':{'user-agent':_0x2d56('47'),'userid':userid,'accept-encoding':_0x2d56('48'),'host':_0x2d56('49'),'authorization':token,'apptype':'\x31','content-type':_0x2d56('4a')}};};;_0xodA='jsjiami.com.v6';
function Env(t, e) {
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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`)
}
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("@"), a = {
url: `http://${h}/v1/scripting/evaluate`,
body: {
script_text: t,
mock_type: "cron",
timeout: r
},
headers: {
"X-Key": o,
Accept: "*/*"
}
};
this.post(a, (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();
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) {
let e = {
"M+": (new Date).getMonth() + 1,
"d+": (new Date).getDate(),
"H+": (new Date).getHours(),
"m+": (new Date).getMinutes(),
"s+": (new Date).getSeconds(),
"q+": Math.floor(((new Date).getMonth() + 3) / 3),
S: (new Date).getMilliseconds()
};
/(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length)));
for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).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
}
}
}
};
this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r)));
let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="];
h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h)
}
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("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t)
}
wait(t) {
return new Promise(e => setTimeout(e, t))
}
done(t = {}) {
const e = (new Date).getTime(),
s = (e - this.startTime) / 1e3;
this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
}
}(t, e)
}