-
Notifications
You must be signed in to change notification settings - Fork 322
/
Copy path爱海盐.js
1885 lines (1885 loc) · 86.7 KB
/
爱海盐.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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* 爱海盐v2.0
* 执行时间: 25 10,16 * * * 爱海盐.js
* const $ = new Env("爱海盐");
* 注册地址:https://app.tmuyun.com/webChannels/invite?inviteCode=WE8M32&tenantId=60&accountId=649cf8b5c790b0426cda351c
* ========= 青龙--配置文件 ===========
* # 爱海盐(配置方式二选一)
* 方式一:账号密码自动登录("&"符号链接也可以,但不推荐)
* export ahyCookie='账号#密码'
* 方式二:抓包协议头里的 X-SESSION-ID 和 X-ACCOUNT-ID
* (“兼容老版本,如果老版本的配置 【X-ACCOUNT-ID&X-SESSIONID】这种,请增加设置 export ahyCookieOldConfigTranform='true'”)
* export ahyCookie='sessionId#accountId'
* 是否启用文章评论开关(注,估计这个操作容易封)
* export ahyCookieEnabledPostComment="false" // 默认为false,代表关闭文章评论功能,如果需要开启请改为 true 或者 1
* 是否启用论坛发帖开关(注,估计这个操作容易封)
* export ahyCookieEnabledForumPost="false" // 默认为false,代表关闭论坛发帖功能,如果需要开启请改为 true 或者 1
* 文章评论是否使用一言随机返回的名人名句
* export ahyCookieEnabledPostCommentBy1Y="false" // 默认为false,代表关闭使用一言的随机评论,如果需要开启请改为 true 或者 1
* 是否强制点赞、分享,不开启相关判断逻辑
* export ahyCookieForceLikeAndShare="false" // 默认为false,代表关闭根据返回的数据判断是否分享或者点赞,如果就是要尝试分享或者点赞请改为 true 或者 1
* 多账号用 换行 或 @ 分割
* ====================================
* 注: 如果没填邀请码会吃个邀请助力,如果介意,请删除该脚本,谢谢配合
* ====================================
* TodoList - 待更新内容:
* 1. 支持环境变量多账号
* 2. 支持部分APP的星社区任务
* 3. 支持自动兑换抢购商品
* 4. 支持配置不同账号对应不同的UA
* 5. 支持代理IP
* ====================================
*/
//Sat Jan 25 2025 08:35:02 GMT+0000 (Coordinated Universal Time)
//Base:https://github.com/echo094/decode-js
//Modify:https://github.com/smallfawn/decode_action
const _0x19bd80 = new _0x3b726d("爱海盐");
_0x43b582();
const _0x1bb6a2 = "ahyCookie",
_0x571ae9 = require("request"),
_0x1850b4 = require("fs"),
_0x33333d = require("form-data"),
_0x456343 = require("./utils");
let _0x28218c = "",
_0x50695a = "https://app.tmuyun.com/webChannels/invite?inviteCode=WE8M32&tenantId=60&accountId=649cf8b5c790b0426cda351c",
_0xc41171 = "幻生提示:有错请在仓库建立issue,说明运行环境:青龙版本、机器是 本地机器、服务器 还是 手机面具模块;附上运行截图,谢谢",
_0x3c0057 = "请在 配置文件 里添加 " + _0x1bb6a2 + " 变量,具体配置请看脚本最上方说明\n注册地址:" + _0x50695a + "\n投稿?请建Issue 或者 +Q:3385445213";
const _0x4dfcbf = Number.isInteger(_0x19bd80.isNode() ? process.env[_0x1bb6a2 + "enabledNotify"] : _0x19bd80.getdata(_0x1bb6a2 + "EnabledNotify")) || Number.isInteger(_0x19bd80.isNode() ? process.env.enabledNotify : _0x19bd80.getdata("enabledNotify")) || 1;
let _0x319816 = 0,
_0x4765f8 = ["@", "\n"],
_0x5314ac = (_0x19bd80.isNode() ? process.env[_0x1bb6a2] : _0x19bd80.getdata(_0x1bb6a2)) || "",
_0x59493e = ["1", 1, "true"]?.["includes"](_0x19bd80.isNode() ? process.env[_0x1bb6a2 + "EnabledPostComment"] : _0x19bd80.getdata(_0x1bb6a2 + "EnabledPostComment")) || false,
_0x169d3f = ["1", 1, "true"]?.["includes"](_0x19bd80.isNode() ? process.env[_0x1bb6a2 + "EnabledForumPost"] : _0x19bd80.getdata(_0x1bb6a2 + "EnabledForumPost")) || false,
_0xca0af9 = ["1", 1, "true"]?.["includes"](_0x19bd80.isNode() ? process.env[_0x1bb6a2 + "EnabledPostCommentBy1Y"] : _0x19bd80.getdata(_0x1bb6a2 + "EnabledPostCommentBy1Y")) || false,
_0x59baf0 = ["1", 1, "true"]?.["includes"](_0x19bd80.isNode() ? process.env[_0x1bb6a2 + "ForceLikeAndShare"] : _0x19bd80.getdata(_0x1bb6a2 + "ForceLikeAndShare")) || false,
_0x2be770 = [],
_0x40b34a = 0,
_0x5e9c16 = 0,
_0x4526f6 = "WE8M32",
_0x145b99 = "10018",
_0x12d02f = 60,
_0x56ccf7 = "vapp.tmuyun.com",
_0x104202 = "请注意:已" + (_0x59493e ? "开启" : "关闭") + " 对文章的评论功能; 已" + (_0x169d3f ? "开启" : "关闭") + " 论坛发帖功能; 已" + (_0xca0af9 ? "开启" : "关闭") + " 一言随机评论功能; 已" + (_0xca0af9 ? "开启" : "关闭") + " 强制点赞/分享功能(强行点不一定能加分)",
_0xcb6aab = "63777162fe3fc118b09fab89",
_0x2aed43 = ["赞", "👍", "😄", "111", "支持", "点赞"],
_0x92d00f = "1.2.2;00000000-62d6-e9e6-0000-0000777fa720;Xiaomi Mi 10;Android;13;Release",
_0x27f861 = ["63552eddfe3fc1680f583c1c", "6389537dad61a46468debc9e", "638952957d9bcd1b7610a132", "6357999806287f04c3191637", "638db5cd7d9bcd1b7610b120", "63573b5c06287f04c31913bd"],
_0x51e865 = ["1", 1, "true"]?.["includes"](_0x19bd80.isNode() ? process.env[_0x1bb6a2 + "OldConfigTranform"] : _0x19bd80.getdata(_0x1bb6a2 + "OldConfigTranform")) || false,
_0x54c9a3 = "",
_0x3b5a9a = "";
async function _0x61c09e() {
console.log("\n================== 用户登录 帐号数:[" + _0x2be770?.["length"] + "]==================\n");
let _0x207d55 = [];
for (let _0x3a9f14 of _0x2be770) {
!_0x3a9f14.sessionId ? (_0x3a9f14.loadCache(), !_0x3a9f14.valid ? _0x207d55.push(await _0x3a9f14.login()) : await _0x19bd80.wait(200)) : (_0x207d55.push(await _0x3a9f14.user_info()), await _0x19bd80.wait(200));
}
await Promise.all(_0x207d55);
_0x2be770 = _0x2be770?.["filter"](_0x11e5bf => _0x11e5bf?.["valid"]);
if (!_0x2be770?.["length"]) {
console.log("\n无可用账号,停止运行\n");
return;
}
console.log("\n================== 用户信息 帐号数:[" + _0x2be770?.["length"] + "]==================\n");
_0x207d55 = [];
for (let _0x2344bf of _0x2be770) {
_0x207d55.push(await _0x2344bf.task_tasklist("用户信息"));
await _0x4fc79b(0.2 + Math.random() * 1);
_0x207d55.push(await _0x2344bf.get_unread_msg());
}
await Promise.all(_0x207d55);
const _0x58cd50 = _0x2be770?.["filter"](_0x55f4fb => _0x55f4fb?.["jobList"]?.["find"](_0x2a85af => _0x2a85af?.["name"]?.["includes"]("签到") && _0x2a85af?.["frequency"] && _0x2a85af?.["frequency"] > _0x2a85af?.["finish_times"]));
if (_0x58cd50?.["length"]) {
console.log("\n================== 每日签到任务开始执行 待执行帐号数:[" + _0x58cd50?.["length"] + "]==================\n");
_0x207d55 = [];
for (let _0x4e3ad7 of _0x58cd50) {
_0x207d55.push(await _0x4e3ad7.task_sign("每日签到"));
await _0x4fc79b(0.2 + Math.random() * 1);
}
await Promise.all(_0x207d55);
} else console.log("\n无签到任务 或 当前帐号都已签到过了,无需执行签到任务\n");
const _0x2f3e20 = _0x2be770?.["filter"](_0x50db7b => _0x50db7b?.["jobList"]?.["find"](_0x2e791f => {
return _0x2e791f?.["name"]?.["includes"]("帖子发布") && _0x2e791f?.["frequency"] && _0x2e791f?.["frequency"] > _0x2e791f?.["finish_times"] && _0x169d3f || _0x2e791f?.["name"]?.["includes"]("帖子点赞") && _0x2e791f?.["frequency"] && _0x2e791f?.["frequency"] > _0x2e791f?.["finish_times"];
}));
if (_0x2f3e20?.["length"]) {
{
console.log("\n================== 社区帖子相关任务开始执行 待执行帐号数:[" + _0x2f3e20?.["length"] + "]==================\n");
_0x207d55 = [];
for (let _0xba3aae of _0x2f3e20) {
_0x207d55.push(await _0xba3aae.task_forum_info("社区帖子列表"));
await _0x4fc79b(0.2 + Math.random() * 1);
}
await Promise.all(_0x207d55);
}
} else console.log("\n无社区帖子相关任务 或 当前帐号都已做完了社区帖子任务,无需执行\n");
await _0x4fc79b(0.2 + Math.random() * 1);
const _0x3d64bf = _0x2be770?.["filter"](_0x1cc460 => _0x1cc460?.["jobList"]?.["find"](_0x592975 => {
return _0x592975?.["name"]?.["includes"]("资讯评论") && _0x592975?.["frequency"] > _0x592975?.["finish_times"] && _0x59493e || _0x592975?.["name"]?.["includes"]("分享资讯") && _0x592975?.["frequency"] && _0x592975?.["frequency"] > _0x592975?.["finish_times"] || _0x592975?.["name"]?.["includes"]("资讯点赞") && _0x592975?.["frequency"] && _0x592975?.["frequency"] > _0x592975?.["finish_times"] || _0x592975?.["name"]?.["includes"]("资讯阅读") && _0x592975?.["frequency"] && _0x592975?.["frequency"] > _0x592975?.["finish_times"];
}));
if (_0x3d64bf?.["length"]) {
{
console.log("\n================== 文章列表相关任务开始执行 待执行帐号数:[" + _0x3d64bf?.["length"] + "]==================\n");
_0x207d55 = [];
for (let _0x50657f of _0x3d64bf) {
console.log("\n开始执行帐号[" + _0x50657f.index + "] 文章任务😄\n");
_0x207d55.push(await _0x50657f.task_articlelist("文章列表"));
await _0x4fc79b(0.2 + Math.random() * 1);
}
await Promise.all(_0x207d55);
}
} else console.log("\n无文章资讯任务 或 当前帐号都已做完了资讯任务,无需执行相关任务\n");
await _0x4fc79b(0.2 + Math.random() * 1);
const _0x6585f3 = _0x2be770?.["filter"](_0x84007 => _0x84007?.["jobList"]?.["find"](_0x1a6e78 => {
return _0x1a6e78?.["name"]?.["includes"]("本地服务") && _0x1a6e78?.["frequency"] && _0x1a6e78?.["frequency"] > _0x1a6e78?.["finish_times"];
}));
if (_0x6585f3?.["length"]) {
console.log("\n================== 本地服务任务开始执行 待执行帐号数:[" + _0x6585f3?.["length"] + "]==================\n");
_0x207d55 = [];
for (let _0x5676e9 of _0x6585f3) {
{
const _0x5b4298 = _0x5676e9?.["jobList"]?.["find"](_0x471392 => {
return _0x471392?.["name"]?.["includes"]("本地服务") && _0x471392?.["frequency"] && _0x471392?.["frequency"] > _0x471392?.["finish_times"];
});
for (let _0x542daf = 0; _0x542daf < _0x5b4298?.["frequency"] - _0x5b4298?.["finish_times"]; _0x542daf++) {
_0x207d55.push(await _0x5676e9.task_share("6", undefined, "本地服务"));
await _0x4fc79b(1 + Math.random() * 1);
}
}
}
await Promise.all(_0x207d55);
} else console.log("\n无本地服务任务 或 当前帐号都已做完了本地服务任务,无需执行相关任务\n");
console.log("\n================== 删除历史评论任务开始执行 待执行帐号数:[" + _0x2be770?.["length"] + "]==================\n");
for (let _0x5b27a2 of _0x2be770) {
await _0x5b27a2.get_comment_history();
await _0x4fc79b(1 + Math.random() * 1);
}
}
class _0x48e239 {
["valid"] = false;
constructor(_0x5ebb54) {
this.index = ++_0x40b34a;
this.accountId = "";
this.host = _0x56ccf7;
this.hostname = "https://" + this.host;
this.key = "FR*r!isE5W";
const _0x1fc6b2 = _0x27f861,
_0x217971 = Math.floor(Math.random() * _0x1fc6b2.length);
this.artlistdata = _0x1fc6b2[_0x217971];
if (_0x5ebb54?.["length"] === 1) {
{
if (_0x5ebb54[0]?.["includes"]("#")) _0x5ebb54 = _0x5ebb54[0]?.["split"]("#");else _0x5ebb54[0]?.["includes"]("&") && (_0x5ebb54 = _0x5ebb54[0]?.["split"]("&"));
}
}
_0x5ebb54[0]?.["length"] === 11 ? (this.account = _0x5ebb54[0], this.password = _0x5ebb54[1]) : _0x51e865 ? (this.sessionId = _0x5ebb54[1], this.accountId = _0x5ebb54[0]) : (this.sessionId = _0x5ebb54[0], this.accountId = _0x5ebb54[1]);
}
["loadCache"]() {
let _0x52a661 = _0x5d8d09(_0x1bb6a2 + "_config", this.account);
if (_0x52a661) {
_0x52a661 = JSON.parse(_0x52a661);
console.log("账号[" + this.index + "]从缓存读取成功 😄 ,其ID为: " + _0x52a661?.["id"] + ",手机号为:" + this.account);
this.accountId = _0x52a661?.["id"];
this.sessionId = _0x52a661?.["sessionId"];
this.valid = true;
return;
}
}
async ["txt_api"]() {
try {
let _0x1754c8 = {
"method": "GET",
"url": "https://v1.hitokoto.cn/",
"qs": {
"c": "d"
},
"headers": {
"content-type": "multipart/form-data; boundary=---011000010111000001101001"
},
"formData": {}
},
_0x48b53e = await _0x1ee6f7(_0x1754c8, "");
if (_0x48b53e.id) return _0x48b53e.hitokoto;else {}
} catch (_0x40c222) {
console.log(_0x40c222);
}
}
async ["task_tasklist"](_0x34f3ad) {
let _0x29ded9 = "/api/user_mumber/numberCenter",
_0x3caf0e = _0x456343.guid(),
_0x5dfb60 = _0x456343.ts13(),
_0x15efa8 = _0x29ded9 + "&&" + this.sessionId + "&&" + _0x3caf0e + "&&" + _0x5dfb60 + "&&" + this.key + "&&" + _0x12d02f,
_0x2f4329 = _0x456343.SHA256_Encrypt(_0x15efa8);
try {
{
let _0x16e5b6 = {
"method": "GET",
"url": "" + this.hostname + _0x29ded9 + "?is_new=1",
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x3caf0e,
"X-TIMESTAMP": _0x5dfb60,
"X-SIGNATURE": _0x2f4329,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x47b858 = await _0x1ee6f7(_0x16e5b6, _0x34f3ad);
if (_0x47b858.code == 0) {
!this.requestedUserInfo && (await this.user_info(), await _0x4fc79b(0.3));
_0x32cb38("账号[" + this.index + "],欢迎用户:[" + _0x47b858.data.rst.nick_name + "],当前积分为[" + _0x47b858.data.rst.total_integral + "]");
_0x54c9a3 += "账号[" + this.index + "],欢迎用户:[" + _0x47b858.data.rst.nick_name + "],当前积分为[" + _0x47b858.data.rst.total_integral + "]\n";
await _0x4fc79b(0.3);
this.jobList = _0x47b858.data.rst.user_task_list?.["map"](_0x4b629d => {
return {
"name": _0x4b629d?.["name"],
"finish_times": Number(_0x4b629d?.["finish_times"]),
"frequency": Number(_0x4b629d?.["frequency"]),
"integral": _0x4b629d?.["integral"],
"member_task_type": _0x4b629d?.["member_task_type"]
};
});
if (_0x47b858?.["data"]?.["daily_sign_info"]?.["name"]?.["includes"]("签到")) {
{
let _0xa8d424 = _0x47b858?.["data"]?.["daily_sign_info"]?.["daily_sign_list"]?.["find"](_0x439232 => _0x439232?.["current"])?.["signed"];
this.jobList.push({
"name": "每日签到",
"finish_times": _0xa8d424 ? 1 : 0,
"frequency": 1
});
}
}
_0x32cb38("账号[" + this.index + "],获取任务列表成功 😄 :");
await _0x4fc79b(0.3);
let _0x1aa033 = "";
await _0x4fc79b(0.2 + Math.random() * 1);
for (let _0x61b693 = 0; _0x61b693 < this.jobList.length; _0x61b693++) {
_0x1aa033 += this.jobList[_0x61b693].name + "[" + this.jobList[_0x61b693].finish_times + "/" + this.jobList[_0x61b693].frequency + "]\n";
}
await _0x4fc79b(0.3);
_0x32cb38(_0x1aa033);
} else _0x32cb38("账号[" + this.index + "],获取任务列表:失败 🙁 了呢,原因:" + _0x47b858?.["message"]), console.log(_0x47b858);
}
} catch (_0x5bac46) {
console.log(_0x5bac46);
}
}
async ["activity_login"](_0x56b115) {
try {
let _0x99ca4d = {
"method": "POST",
"url": "http://api.576tv.com/AppActive/Public/setAppLogin",
"headers": {
"Accept": " */*",
"Origin": " http://api.576tv.com",
"X-Requested-With": " XMLHttpRequest",
"User-Agent": " Mozilla/5.0 (Linux; Android 9; PBBM00 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36;xsb_wangchao;xsb_wangchao;5.3.1;native_app",
"Content-Type": " application/x-www-form-urlencoded; charset=UTF-8"
},
"body": "uuid=tzmxc&cookie=0&accountId=" + this.accountId + "&sessionId=" + this.sessionId
},
_0x3d60b7 = await _0x1ee6f7(_0x99ca4d, _0x56b115, true),
_0x2293a1 = _0x3d60b7?.["body"];
_0x2293a1.status == 1 ? (this.authCookie = _0x3d60b7?.["rawHeaders"]?.["filter"](_0x1b4907 => _0x1b4907?.["includes"]("path=/"))?.["join"](";"), _0x32cb38("账号[" + this.index + "],授权活动成功 😄"), await this.activity_vote("投票")) : _0x32cb38("账号[" + this.index + "],授权活动:失败 🙁 了呢,原因:" + JSON.stringify(_0x2293a1));
} catch (_0x5327d0) {
console.log(_0x5327d0);
}
}
async ["activity_vote"](_0xfd79eb) {
try {
let _0x8f53bf = {
"method": "POST",
"url": "http://api.576tv.com/AppActive/Vote/postVote",
"headers": {
"Accept": " */*",
"Origin": " http://api.576tv.com",
"X-Requested-With": " XMLHttpRequest",
"User-Agent": " Mozilla/5.0 (Linux; Android 9; PBBM00 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36;xsb_wangchao;xsb_wangchao;5.3.1;native_app",
"Content-Type": " application/x-www-form-urlencoded; charset=UTF-8",
"Cookie": this.authCookie
},
"body": "uuid=tzmxc&voteids=10461%2C10455%2C10476%2C10448%2C10456"
},
_0x4114b4 = await _0x1ee6f7(_0x8f53bf, _0xfd79eb);
_0x4114b4.status == 1 ? (_0x32cb38("账号[" + this.index + "],投票成功 😄"), await this.activity_draw("抽奖")) : (_0x32cb38("账号[" + this.index + "],投票:失败 🙁 了呢,原因:" + _0x4114b4?.["info"]), await this.activity_get_prize("读取奖品"));
} catch (_0xc52a7b) {
console.log(_0xc52a7b);
}
}
async ["activity_draw"](_0x277758) {
try {
let _0x3054d1 = {
"method": "POST",
"url": "http://api.576tv.com/AppActive/Prize/start",
"headers": {
"Accept": " */*",
"Origin": " http://api.576tv.com",
"X-Requested-With": " XMLHttpRequest",
"User-Agent": " Mozilla/5.0 (Linux; Android 9; PBBM00 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36;xsb_wangchao;xsb_wangchao;5.3.1;native_app",
"Content-Type": " application/x-www-form-urlencoded; charset=UTF-8",
"Cookie": this.authCookie
},
"body": "uuid=tzmxc"
},
_0x295acc = await _0x1ee6f7(_0x3054d1, _0x277758);
_0x295acc.status == 1 ? _0x32cb38("账号[" + this.index + "],抽奖成功 😄:" + JSON.stringify(_0x295acc)) : _0x32cb38("账号[" + this.index + "],抽奖失败 🙁 了呢,原因:" + _0x295acc?.["info"]);
await this.activity_get_prize("读取奖品");
} catch (_0x11306e) {
console.log(_0x11306e);
}
}
async ["activity_get_prize"](_0x461797) {
try {
let _0x49b60a = {
"method": "POST",
"url": "http://api.576tv.com/AppActive/Prize/getPrize",
"headers": {
"Accept": " */*",
"Origin": " http://api.576tv.com",
"X-Requested-With": " XMLHttpRequest",
"User-Agent": " Mozilla/5.0 (Linux; Android 9; PBBM00 Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36;xsb_wangchao;xsb_wangchao;5.3.1;native_app",
"Content-Type": " application/x-www-form-urlencoded; charset=UTF-8",
"Cookie": this.authCookie
},
"body": "uuid=tzmxc"
},
_0x34c36f = await _0x1ee6f7(_0x49b60a, _0x461797);
if (_0x34c36f.status == 1) {
let _0x44eb2d = "";
for (let _0x1394d1 = 0; _0x1394d1 < _0x34c36f?.["data"]?.["length"]; _0x1394d1++) {
{
const _0x2b9a7e = _0x34c36f?.["data"][_0x1394d1];
_0x44eb2d += "\n奖品名称:" + _0x2b9a7e?.["title"] + "----" + (_0x2b9a7e?.["url"] || _0x2b9a7e?.["time"]) + "----" + (_0x2b9a7e?.["valid"] === "1" ? "未领取" : "已领取") + "----全部信息:" + JSON.stringify(_0x2b9a7e);
}
}
_0x32cb38("账号[" + this.index + "],读取奖品成功 😄:" + (_0x44eb2d || JSON.stringify(_0x34c36f?.["data"])));
} else _0x32cb38("账号[" + this.index + "],读取中奖记录失败 🙁 了呢,原因:" + _0x34c36f?.["info"]);
} catch (_0x2bfd91) {
console.log(_0x2bfd91);
}
}
async ["task_sign"](_0x1ace01) {
let _0x49cb19 = "/api/user_mumber/sign",
_0x2ff413 = _0x456343.guid(),
_0x46e1f9 = _0x456343.ts13(),
_0x3b6dbc = _0x49cb19 + "&&" + this.sessionId + "&&" + _0x2ff413 + "&&" + _0x46e1f9 + "&&" + this.key + "&&" + _0x12d02f,
_0xc89b = _0x456343.SHA256_Encrypt(_0x3b6dbc);
try {
let _0x5d8fa3 = {
"method": "GET",
"url": "" + this.hostname + _0x49cb19,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x2ff413,
"X-TIMESTAMP": _0x46e1f9,
"X-SIGNATURE": _0xc89b,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x312bce = await _0x1ee6f7(_0x5d8fa3, _0x1ace01);
_0x312bce.code == 0 ? _0x32cb38("账号[" + this.index + "],签到成功 😄 [" + _0x312bce.data.signCommonInfo.date + "],获得积分:[" + _0x312bce.data.signExperience + "]") : (_0x32cb38("账号[" + this.index + "],签到:失败 🙁 了呢,原因:" + _0x312bce?.["message"]), console.log(_0x312bce));
} catch (_0x11cd93) {
console.log(_0x11cd93);
}
}
async ["task_forum_info"](_0x3091e8) {
let _0x4fe906 = "/api/forum/forum_list",
_0x3b3175 = _0x456343.guid(),
_0x36a7af = _0x456343.ts13(),
_0x465095 = _0x4fe906 + "&&" + this.sessionId + "&&" + _0x3b3175 + "&&" + _0x36a7af + "&&" + this.key + "&&" + _0x12d02f,
_0x129508 = _0x456343.SHA256_Encrypt(_0x465095);
try {
let _0x1a4a0d = {
"method": "GET",
"url": "" + this.hostname + _0x4fe906 + ("?tenantId=" + _0x12d02f),
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x3b3175,
"X-TIMESTAMP": _0x36a7af,
"X-SIGNATURE": _0x129508,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x47681c = await _0x1ee6f7(_0x1a4a0d, _0x3091e8);
if (_0x47681c.code == 0) {
{
const _0x21c321 = _0x47681c?.["data"]?.["forum_list"]?.["length"] ? _0x47681c?.["data"]?.["forum_list"][0]?.["id"] : undefined;
_0x21c321 ? (_0x32cb38("账号[" + this.index + "],获取社区信息成功 😄 ,准备开始获取相关列表"), await this.task_forum_list(_0x21c321)) : _0x32cb38("账号[" + this.index + "],获取社区为空 🙁 ,跳过社区任务");
}
} else _0x32cb38("账号[" + this.index + "],获取社区信息:失败 🙁 了呢,原因:" + _0x47681c?.["message"]), console.log(_0x47681c);
} catch (_0x34d05f) {
console.log(_0x34d05f);
}
}
async ["task_forum_list"](_0x98e570) {
let _0x11fd1f = "/api/forum/thread_list",
_0x85cb74 = _0x456343.guid(),
_0x6b0289 = _0x456343.ts13(),
_0x108d28 = _0x11fd1f + "&&" + this.sessionId + "&&" + _0x85cb74 + "&&" + _0x6b0289 + "&&" + this.key + "&&" + _0x12d02f,
_0x127bbc = _0x456343.SHA256_Encrypt(_0x108d28);
try {
let _0x302e8f = {
"method": "GET",
"url": "" + this.hostname + _0x11fd1f + ("?forum_id=" + _0x98e570),
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x85cb74,
"X-TIMESTAMP": _0x6b0289,
"X-SIGNATURE": _0x127bbc,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x555d1f = await _0x1ee6f7(_0x302e8f, "获取帖子");
if (_0x555d1f.code == 0) for (let _0x34a150 = 0; _0x34a150 < _0x555d1f.data.thread_list?.["length"]; _0x34a150++) {
if (!this?.["jobList"]?.["find"](_0x2b149f => {
return _0x2b149f?.["name"]?.["includes"]("帖子发布") && _0x2b149f?.["frequency"] > _0x2b149f?.["finish_times"] && _0x169d3f || _0x2b149f?.["name"]?.["includes"]("帖子点赞") && _0x2b149f?.["frequency"] > _0x2b149f?.["finish_times"];
})) {
{
_0x32cb38("账号[" + this.index + "],社区任务已完成,跳过-----");
break;
}
}
_0x32cb38("账号[" + this.index + "],对帖子[" + _0x555d1f.data.thread_list[_0x34a150].id + "]操作-----");
await _0x4fc79b(0.3 + Math.random() * 1);
if (this?.["jobList"]?.["find"](_0xe0348e => {
return _0xe0348e?.["name"]?.["includes"]("帖子点赞") && _0xe0348e?.["frequency"] > _0xe0348e?.["finish_times"];
})) {
if (_0x555d1f.data.thread_list[_0x34a150].already_liked) _0x32cb38("账号[" + this.index + "],之前已经对帖子[" + _0x555d1f.data.thread_list[_0x34a150].id + "]点赞过,不能再次点赞");else {
await this.task_forum_like(_0x555d1f.data.thread_list[_0x34a150].id);
}
await _0x4fc79b(1 + Math.random() * 1);
} else _0x32cb38("账号[" + this.index + "],无需对帖子点赞");
if (this?.["jobList"]?.["find"](_0x592e6e => {
return _0x592e6e?.["name"]?.["includes"]("帖子发布") && _0x592e6e?.["frequency"] > _0x592e6e?.["finish_times"] && _0x169d3f;
})) {
await this.task_forum_post(_0x98e570);
await _0x4fc79b(1 + Math.random() * 1);
} else _0x32cb38("账号[" + this.index + "],无需发布帖子,可能是 已执行完毕该任务,或者 未开启该任务");
} else {
_0x32cb38("账号[" + this.index + "],获取社区帖子:失败 🙁 了呢,原因:" + _0x555d1f?.["message"]);
console.log(_0x555d1f);
}
} catch (_0x248ddf) {
console.log(_0x248ddf);
}
}
async ["task_forum_like"](_0x356737) {
let _0x49ed1b = "/api/forum/like",
_0x13d469 = _0x456343.guid(),
_0x31a0d6 = _0x456343.ts13(),
_0x51176a = _0x49ed1b + "&&" + this.sessionId + "&&" + _0x13d469 + "&&" + _0x31a0d6 + "&&" + this.key + "&&" + _0x12d02f,
_0x343f60 = _0x456343.SHA256_Encrypt(_0x51176a);
try {
let _0x13034b = _0x33333d();
_0x13034b.append("target_type", "1");
_0x13034b.append("target_id", _0x356737);
let _0xcc800f = {
"method": "POST",
"url": "" + this.hostname + _0x49ed1b,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x13d469,
"X-TIMESTAMP": _0x31a0d6,
"X-SIGNATURE": _0x343f60,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryTDSOjpwy3A5ypRAo",
"Host": this.host,
"Connection": "Keep-Alive",
"Accept": "*/*",
"X-ACCOUNT-ID": this.accountId
},
"body": _0x13034b
};
_0xcc800f.headers["Content-Type"] = "multipart/form-data; boundary=" + _0x13034b.getBoundary();
let _0x31ee88 = await _0x1ee6f7(_0xcc800f, "点赞帖子");
if (_0x31ee88.code == 0) {
{
const _0x39a9cb = this?.["jobList"]?.["find"](_0x24fc93 => {
return _0x24fc93?.["name"]?.["includes"]("帖子点赞") && _0x24fc93?.["frequency"] > _0x24fc93?.["finish_times"];
});
_0x39a9cb.finish_times++;
_0x32cb38("账号[" + this.index + "],点赞帖子成功 😄 :[" + _0x356737 + "]");
}
} else {
_0x32cb38("账号[" + this.index + "],点赞帖子:失败 🙁 了呢,原因:" + _0x31ee88?.["message"]);
console.log(_0x31ee88);
}
} catch (_0x177478) {
console.log(_0x177478);
}
}
async ["task_forum_post"](_0x4bd577) {
let _0x181ac4 = "/api/forum/post_thread",
_0x3b86be = _0x456343.guid(),
_0x38649f = _0x456343.ts13(),
_0x52a06b = _0x181ac4 + "&&" + this.sessionId + "&&" + _0x3b86be + "&&" + _0x38649f + "&&" + this.key + "&&" + _0x12d02f,
_0x5a82ca = _0x456343.SHA256_Encrypt(_0x52a06b);
try {
let _0x4db204 = _0x33333d();
_0x4db204.append("forum_id", _0x4bd577);
_0x4db204.append("title", "签到");
_0x4db204.append("content", "今日打卡");
_0x4db204.append("attachments", "");
_0x4db204.append("location_name", "{}");
let _0x5f1559 = {
"method": "POST",
"url": "" + this.hostname + _0x181ac4,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x3b86be,
"X-TIMESTAMP": _0x38649f,
"X-SIGNATURE": _0x5a82ca,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryMdIuuLGEa01BfEzM",
"Host": this.host,
"Connection": "Keep-Alive",
"Accept": "*/*",
"X-ACCOUNT-ID": this.accountId
},
"body": _0x4db204
};
_0x5f1559.headers["Content-Type"] = "multipart/form-data; boundary=" + _0x4db204.getBoundary();
let _0x406a2f = await _0x1ee6f7(_0x5f1559, "发布帖子");
if (_0x406a2f.code == 0) {
const _0x81ea73 = this?.["jobList"]?.["find"](_0x186f92 => {
return _0x186f92?.["name"]?.["includes"]("帖子发布") && _0x186f92?.["frequency"] > _0x186f92?.["finish_times"];
});
_0x81ea73.finish_times++;
_0x32cb38("账号[" + this.index + "],发布帖子成功 😄 :[" + _0x4bd577 + "]");
await this.deleteForumPost(_0x406a2f?.["data"]?.["thread_id"]);
} else _0x32cb38("账号[" + this.index + "],发布帖子:失败 🙁 了呢,原因:" + _0x406a2f?.["message"]), console.log(_0x406a2f);
} catch (_0x24c4f0) {
console.log(_0x24c4f0);
}
}
async ["deleteForumPost"](_0x1cdbef) {
let _0x5648a8 = "/api/forum/delete_thread",
_0xee4987 = _0x456343.guid(),
_0x2b1f12 = _0x456343.ts13(),
_0x352c06 = _0x5648a8 + "&&" + this.sessionId + "&&" + _0xee4987 + "&&" + _0x2b1f12 + "&&" + this.key + "&&" + _0x12d02f,
_0xcd8292 = _0x456343.SHA256_Encrypt(_0x352c06);
try {
{
let _0x1cadf8 = _0x33333d();
_0x1cadf8.append("thread_id", _0x1cdbef);
let _0x503932 = {
"method": "POST",
"url": "" + this.hostname + _0x5648a8,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0xee4987,
"X-TIMESTAMP": _0x2b1f12,
"X-SIGNATURE": _0xcd8292,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryi1cQvxsAzoTagcpx",
"Host": this.host,
"Connection": "Keep-Alive",
"Accept": "*/*",
"X-ACCOUNT-ID": this.accountId
},
"body": _0x1cadf8
};
_0x503932.headers["Content-Type"] = "multipart/form-data; boundary=" + _0x1cadf8.getBoundary();
let _0x183d25 = await _0x1ee6f7(_0x503932, "删除帖子");
_0x183d25.code == 0 ? _0x32cb38("账号[" + this.index + "],删除帖子成功 😄 :[" + _0x1cdbef + "]") : (_0x32cb38("账号[" + this.index + "],删除帖子:失败 🙁 了呢,原因:" + _0x183d25?.["message"]), console.log(_0x183d25));
}
} catch (_0x45c8fc) {
console.log(_0x45c8fc);
}
}
async ["task_articlelist"](_0x48de09) {
let _0x30fa27 = "/api/article/channel_list",
_0x3ff64f = _0x456343.guid(),
_0x3fc6be = _0x456343.ts13(),
_0x477321 = _0x30fa27 + "&&" + this.sessionId + "&&" + _0x3ff64f + "&&" + _0x3fc6be + "&&" + this.key + "&&" + _0x12d02f,
_0xc2649c = _0x456343.SHA256_Encrypt(_0x477321);
try {
let _0x175cb1 = {
"method": "GET",
"url": "" + this.hostname + _0x30fa27 + ("?channel_id=" + this.artlistdata + "&isDiangHao=false&is_new=" + (Math.random() >= 0.5) + "&list_count=" + Math.floor(Math.random() * 10) + "&size=10"),
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x3ff64f,
"X-TIMESTAMP": _0x3fc6be,
"X-SIGNATURE": _0xc2649c,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x1b3fae = await _0x1ee6f7(_0x175cb1, _0x48de09);
if (_0x1b3fae.code == 0) {
let _0x262a79 = false;
for (let _0x225218 = 0; _0x225218 < _0x1b3fae.data.article_list?.["length"]; _0x225218++) {
if (!this?.["jobList"]?.["find"](_0x12dcea => {
return _0x12dcea?.["name"]?.["includes"]("资讯评论") && _0x12dcea?.["frequency"] > _0x12dcea?.["finish_times"] && _0x59493e || _0x12dcea?.["name"]?.["includes"]("分享资讯") && _0x12dcea?.["frequency"] > _0x12dcea?.["finish_times"] || _0x12dcea?.["name"]?.["includes"]("资讯点赞") && _0x12dcea?.["frequency"] > _0x12dcea?.["finish_times"] || _0x12dcea?.["name"]?.["includes"]("资讯阅读") && _0x12dcea?.["frequency"] > _0x12dcea?.["finish_times"];
})) {
_0x32cb38("账号[" + this.index + "],文章任务已完成,跳过后续文章-----");
break;
}
await this.task_comment_pre();
await _0x4fc79b(1 + Math.random() * 1);
_0x32cb38("账号[" + this.index + "],对 第" + (_0x225218 + 1) + "篇 文章[" + _0x1b3fae.data.article_list[_0x225218].id + "]操作-----");
let _0x3d8854 = _0x1b3fae.data.article_list[_0x225218].id;
await this.task_read(_0x3d8854);
await _0x4fc79b(1 + Math.random() * 1);
if (this?.["jobList"]?.["find"](_0x373278 => {
return _0x373278?.["name"]?.["includes"]("资讯点赞") && _0x373278?.["frequency"] > _0x373278?.["finish_times"];
})) {
{
if (_0x1b3fae.data.article_list[_0x225218].liked) _0x32cb38("账号[" + this.index + "],之前已经对资讯[" + _0x3d8854 + "]点赞过,不能再次点赞");else !_0x1b3fae.data.article_list[_0x225218].like_enabled && !_0x59baf0 ? _0x32cb38("账号[" + this.index + "],资讯[" + _0x3d8854 + "]未开启点赞功能,无法进行点赞") : await this.task_like(_0x3d8854);
await _0x4fc79b(1 + Math.random() * 1);
}
}
if (!_0x262a79) {
if (_0x59493e && !this.commentError && this?.["jobList"]?.["find"](_0x1acf71 => {
return _0x1acf71?.["name"]?.["includes"]("资讯评论") && _0x1acf71?.["frequency"] > _0x1acf71?.["finish_times"];
})) await this.task_comment(_0x3d8854), await _0x4fc79b(2 + Math.random() * 1);else {
this.commentError && (_0x32cb38("账号[" + this.index + "],评论文章遇见了一些问题 🙁 ,暂无解决方法,即将跳过后续评论,如果您有解决方法,欢迎提供,错误信息:该篇新闻不支持评论【评论失败,请重新进入当前页面!】"), _0x262a79 = true);
}
} else {
{
if (!this?.["jobList"]?.["find"](_0x599bd7 => {
return _0x599bd7?.["name"]?.["includes"]("分享资讯") && _0x599bd7?.["frequency"] > _0x599bd7?.["finish_times"] || _0x599bd7?.["name"]?.["includes"]("资讯点赞") && _0x599bd7?.["frequency"] > _0x599bd7?.["finish_times"] || _0x599bd7?.["name"]?.["includes"]("资讯阅读") && _0x599bd7?.["frequency"] > _0x599bd7?.["finish_times"];
})) break;
}
}
this?.["jobList"]?.["find"](_0x4999a2 => {
return _0x4999a2?.["name"]?.["includes"]("分享资讯") && _0x4999a2?.["frequency"] > _0x4999a2?.["finish_times"];
}) && (!_0x1b3fae.data.article_list[_0x225218].share_enabled && !_0x59baf0 ? _0x32cb38("账号[" + this.index + "],文章[" + _0x3d8854 + "]未开启分享功能,无法进行分享") : await this.task_share("3", _0x3d8854, "分享"));
}
} else _0x32cb38("账号[" + this.index + "],获取文章:失败 🙁 了呢,原因:" + _0x1b3fae?.["message"]), console.log(_0x1b3fae);
} catch (_0x594a1e) {
console.log(_0x594a1e);
}
}
async ["get_comment_history"](_0x5434dd) {
let _0x632c8e = "/api/account_comment/comment_list",
_0x221786 = _0x456343.guid(),
_0x1eec6e = _0x456343.ts13(),
_0x5c8781 = _0x632c8e + "&&" + this.sessionId + "&&" + _0x221786 + "&&" + _0x1eec6e + "&&" + this.key + "&&" + _0x12d02f,
_0x395c5f = _0x456343.SHA256_Encrypt(_0x5c8781);
try {
let _0x1ef7ec = {
"method": "GET",
"url": "" + this.hostname + _0x632c8e + "?size=999",
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x221786,
"X-TIMESTAMP": _0x1eec6e,
"X-SIGNATURE": _0x395c5f,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x45e624 = await _0x1ee6f7(_0x1ef7ec, _0x5434dd);
if (_0x45e624.code == 0) {
let _0x5a5594 = _0x45e624.data.comment_list?.["length"];
for (let _0x5d6086 = 0; _0x5d6086 < _0x45e624.data.comment_list?.["length"]; _0x5d6086++) {
_0x32cb38("账号[" + this.index + "],对 第" + (_0x5d6086 + 1) + "个 评论[" + _0x45e624.data.comment_list[_0x5d6086].id + "]删除,删除总数量:" + _0x45e624.data.comment_list?.["length"] + ",待删除:" + _0x5a5594 + " 条-----");
let _0x3935e3 = _0x45e624.data.comment_list[_0x5d6086].id;
await this.deleteComment(_0x3935e3);
_0x5a5594--;
await _0x4fc79b(1 + Math.random() * 1);
}
} else _0x32cb38("账号[" + this.index + "],删除评论:失败 🙁 了呢,原因:" + _0x45e624?.["message"]), console.log(_0x45e624);
} catch (_0x20fe45) {
console.log(_0x20fe45);
}
}
async ["task_read"](_0x48eae8) {
let _0x4df33a = "/api/article/detail",
_0xe2c4fc = _0x456343.guid(),
_0x7c94b8 = _0x456343.ts13(),
_0x26ee2a = _0x4df33a + "&&" + this.sessionId + "&&" + _0xe2c4fc + "&&" + _0x7c94b8 + "&&" + this.key + "&&" + _0x12d02f,
_0x158023 = _0x456343.SHA256_Encrypt(_0x26ee2a);
try {
let _0x400693 = {
"method": "GET",
"url": "" + this.hostname + _0x4df33a + "?id=" + _0x48eae8,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0xe2c4fc,
"X-TIMESTAMP": _0x7c94b8,
"X-SIGNATURE": _0x158023,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0xcb1257 = await _0x1ee6f7(_0x400693, "阅读文章");
if (_0xcb1257.code == 0) {
const _0x3b71ed = this?.["jobList"]?.["find"](_0x4b1e8c => {
return _0x4b1e8c?.["name"]?.["includes"]("资讯阅读") && _0x4b1e8c?.["frequency"] > _0x4b1e8c?.["finish_times"];
});
_0x3b71ed && _0x3b71ed.finish_times++;
_0x32cb38("账号[" + this.index + "],阅读文章成功 😄 :[" + _0xcb1257.data.article.id + "]");
} else _0x32cb38("账号[" + this.index + "],阅读文章:失败 🙁 了呢,原因:" + _0xcb1257?.["message"]);
} catch (_0x5381fc) {
console.log(_0x5381fc);
}
}
async ["task_like"](_0x5b4d90) {
let _0x4b7d87 = "/api/favorite/like",
_0x46aba2 = _0x456343.guid(),
_0xe70a79 = _0x456343.ts13(),
_0x2105de = _0x4b7d87 + "&&" + this.sessionId + "&&" + _0x46aba2 + "&&" + _0xe70a79 + "&&" + this.key + "&&" + _0x12d02f,
_0x2fe6d8 = _0x456343.SHA256_Encrypt(_0x2105de);
try {
let _0x10f0d8 = {
"method": "POST",
"url": "" + this.hostname + _0x4b7d87,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x46aba2,
"X-TIMESTAMP": _0xe70a79,
"X-SIGNATURE": _0x2fe6d8,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
},
"form": {
"action": "true",
"id": _0x5b4d90
}
},
_0x1fd3c0 = await _0x1ee6f7(_0x10f0d8, "点赞文章");
if (_0x1fd3c0.code == 0) {
const _0x3aa7af = this?.["jobList"]?.["find"](_0x4da081 => {
return _0x4da081?.["name"]?.["includes"]("资讯点赞") && _0x4da081?.["frequency"] > _0x4da081?.["finish_times"];
});
_0x3aa7af.finish_times++;
_0x32cb38("账号[" + this.index + "],点赞文章成功 😄 :[" + _0x5b4d90 + "]");
} else _0x32cb38("账号[" + this.index + "],用户查询:失败 🙁 了呢,原因:" + _0x1fd3c0?.["message"]), console.log(_0x1fd3c0);
} catch (_0x5f1bcb) {
console.log(_0x5f1bcb);
}
}
async ["RSA_Encrypt"](_0x4d1546) {
const _0xa30663 = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD6XO7e9YeAOs+cFqwa7ETJ+WXizPqQeXv68i5vqw9pFREsrqiBTRcg7wB0RIp3rJkDpaeVJLsZqYm5TW7FWx/iOiXFc+zCPvaKZric2dXCw27EvlH5rq+zwIPDAJHGAfnn1nmQH7wR3PCatEIb8pz5GFlTHMlluw4ZYmnOwg+thwIDAQAB\n-----END PUBLIC KEY-----",
_0x34b89f = _0x456343.RSA_Encrypt(_0x4d1546, _0xa30663);
return _0x34b89f;
}
async ["loginByCode"](_0xa25e08, _0x4a190e) {
try {
let _0x2395e0 = "/api/zbtxz/login",
_0xa31a3d = _0x456343.guid(),
_0x1e4f9f = _0x456343.ts13(),
_0x42c430 = _0x2395e0 + "&&" + (this.sessionId || _0xa25e08) + "&&" + _0xa31a3d + "&&" + _0x1e4f9f + "&&" + this.key + "&&" + _0x12d02f,
_0x2599c2 = _0x456343.SHA256_Encrypt(_0x42c430),
_0x2af174 = {
"method": "POST",
"url": "" + this.hostname + _0x2395e0,
"headers": {
"X-SESSION-ID": "" + (this.sessionId || _0xa25e08),
"X-REQUEST-ID": _0xa31a3d,
"X-TIMESTAMP": _0x1e4f9f,
"X-SIGNATURE": _0x2599c2,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive"
},
"form": "code=" + _0x4a190e
},
_0x2000be = await _0x1ee6f7(_0x2af174, "取Token");
if (_0x2000be.code == 0) {
{
this.valid = true;
this.sessionId = _0x2000be.data.session.id;
this.accountId = _0x2000be.data.session.account || _0x2000be.data.session.account_id;
_0x53aed0(_0x1bb6a2 + "_config", this.account, JSON.stringify({
"id": this.accountId,
"sessionId": this.sessionId
}));
_0x32cb38("账号[" + this.index + "],取Token成功 😄 ");
}
} else this.valid = false, _0x32cb38("账号[" + this.index + "],取Token:失败 🙁 了呢,原因:" + _0x2000be?.["message"]), console.log(_0x2000be);
} catch (_0x17d3b5) {
console.log(_0x17d3b5);
}
}
async ["loginInit"](_0x5a5a0e) {
try {
{
const _0x50ac79 = "";
let _0x2af698 = "/api/account/init",
_0x4e5b4c = _0x456343.guid(),
_0x2d3681 = _0x456343.ts13(),
_0x34915f = _0x2af698 + "&&" + _0x4e5b4c + "&&" + _0x2d3681 + "&&" + this.key + "&&" + _0x12d02f,
_0x2dc87a = _0x456343.SHA256_Encrypt(_0x34915f),
_0x464c34 = {
"method": "POST",
"url": "" + this.hostname + _0x2af698,
"headers": {
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-SIGNATURE": _0x2dc87a,
"X-REQUEST-ID": _0x4e5b4c,
"Content-Length": _0x50ac79?.["length"],
"X-SESSION-ID": "",
"X-TENANT-ID": _0x12d02f,
"X-TIMESTAMP": _0x2d3681
},
"form": _0x50ac79
};
if (this.authCookie) {
_0x464c34.headers.Cookie = this.authCookie;
}
let _0x3ab185 = await _0x1ee6f7(_0x464c34, "登录初始化");
_0x3ab185.code == 0 ? (_0x32cb38("账号[" + this.index + "],登录初始化成功 😄 "), _0x3b5a9a = _0x3ab185.data.session.id, await this.loginByCode(_0x3ab185.data.session.id, _0x5a5a0e)) : (this.valid = false, _0x32cb38("账号[" + this.index + "],登录初始化:失败 🙁 了呢,原因:" + _0x3ab185?.["message"]));
}
} catch (_0x13c4f8) {
console.log(_0x13c4f8);
}
}
async ["login"]() {
let _0x5f3618 = "/web/oauth/credential_auth",
_0x5edf28 = _0x456343.guid(),
_0x4cd749 = _0x456343.ts13(),
_0x3260be = _0x5f3618 + "&&" + _0x5edf28 + "&&" + _0x4cd749 + "&&" + this.key + "&&" + _0x12d02f,
_0x30ddee = _0x456343.SHA256_Encrypt(_0x3260be);
try {
{
let _0x44a3c0 = {
"method": "POST",
"url": "https://passport.tmuyun.com/web/oauth/credential_auth",
"headers": {
"X-TIMESTAMP": _0x4cd749,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "passport.tmuyun.com",
"Connection": "Keep-Alive",
"X-SIGNATURE": _0x30ddee,
"X-REQUEST-ID": _0x5edf28
},
"form": "client_id=" + (_0x145b99 || "10001") + "&password=" + encodeURIComponent(await this.RSA_Encrypt(this.password)) + "&phone_number=" + this.account
};
this.authCookie && (_0x44a3c0.headers.Cookie = this.authCookie);
let _0x40cfb0 = await _0x1ee6f7(_0x44a3c0, "登录");
if (_0x40cfb0.code == 0) {
_0x32cb38("账号[" + this.index + "],登录成功 😄 ");
!_0x3b5a9a ? await this.loginInit(_0x40cfb0.data.authorization_code.code) : await this.loginByCode(_0x3b5a9a, _0x40cfb0.data.authorization_code.code);
} else this.valid = false, _0x32cb38("账号[" + this.index + "],登录:失败 🙁 了呢,原因:" + _0x40cfb0?.["message"]), console.log(_0x40cfb0);
}
} catch (_0x22c669) {
console.log(_0x22c669);
}
}
async ["app_start"]() {
let _0x32b68c = "/api/app_start_page/list/new",
_0x33048d = _0x456343.guid(),
_0x45f0e8 = _0x456343.ts13(),
_0x52f922 = _0x32b68c + "&&" + _0xcb6aab + "&&" + _0x33048d + "&&" + _0x45f0e8 + "&&" + this.key + "&&" + _0x12d02f,
_0x5cda4b = _0x456343.SHA256_Encrypt(_0x52f922);
try {
{
let _0x3a7ab0 = {
"method": "GET",
"url": "" + this.hostname + _0x32b68c + "?height=2206&width=1080",
"headers": {
"X-SESSION-ID": "" + _0xcb6aab,
"X-REQUEST-ID": _0x33048d,
"X-TIMESTAMP": _0x45f0e8,
"X-SIGNATURE": _0x5cda4b,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x5db95b = await _0x1ee6f7(_0x3a7ab0, "App启动中");
_0x5db95b.code == 0 ? _0x32cb38("账号[" + this.index + "],App启动成功 😄 ") : _0x32cb38("账号[" + this.index + "],App启动:失败 🙁 了呢,原因:" + _0x5db95b?.["message"]);
}
} catch (_0x20fa36) {
console.log(_0x20fa36);
}
}
async ["web_start"]() {
let _0x50267a = "/web/init",
_0x500a8c = _0x456343.guid(),
_0x567668 = _0x456343.ts13(),
_0x25de89 = _0x50267a + "&&" + _0xcb6aab + "&&" + _0x500a8c + "&&" + _0x567668 + "&&" + this.key + "&&" + _0x12d02f,
_0x427f90 = _0x456343.SHA256_Encrypt(_0x25de89);
try {
let _0x58bd48 = {
"method": "GET",
"url": "https://passport.tmuyun.com/web/init?client_id=" + _0x145b99,
"headers": {
"X-SESSION-ID": "" + _0xcb6aab,
"X-REQUEST-ID": _0x500a8c,
"X-TIMESTAMP": _0x567668,
"X-SIGNATURE": _0x427f90,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "passport.tmuyun.com",
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x2680ec = await _0x1ee6f7(_0x58bd48, "Web初始化中", true),
_0x27559c = _0x2680ec?.["body"];
if (_0x27559c.code == 0) {
let _0x4bba12 = _0x2680ec?.["rawHeaders"]?.["find"](_0x2d57a5 => _0x2d57a5?.["includes"]("SESSION"));
_0x4bba12 && (this.authCookie = _0x4bba12);
_0x32cb38("账号[" + this.index + "],Web初始化成功 😄 ");
} else _0x32cb38("账号[" + this.index + "],Web初始化:失败 🙁 了呢,原因:" + _0x27559c?.["message"]);
} catch (_0xe92019) {
console.log(_0xe92019);
}
}
async ["iframe_start"]() {
let _0x4b445a = "/api/bullet_frame/detail",
_0x5599b4 = _0x456343.guid(),
_0x3106b0 = _0x456343.ts13(),
_0x305f08 = _0x4b445a + "&&" + _0xcb6aab + "&&" + _0x5599b4 + "&&" + _0x3106b0 + "&&" + this.key + "&&" + _0x12d02f,
_0x2f6f71 = _0x456343.SHA256_Encrypt(_0x305f08);
try {
let _0x21f380 = {
"method": "GET",
"url": "" + this.hostname + _0x4b445a,
"headers": {
"X-SESSION-ID": "" + _0xcb6aab,
"X-REQUEST-ID": _0x5599b4,
"X-TIMESTAMP": _0x3106b0,
"X-SIGNATURE": _0x2f6f71,
"X-TENANT-ID": _0x12d02f,
"User-Agent": _0x92d00f,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}