forked from zjk2017/ArcadiaScriptPublic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path掌上瓯海积分.js
1818 lines (1818 loc) · 84.8 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
* cron: 25 10,16 * * *
* const $ = new Env("掌上瓯海积分");
* 注册地址:
* ========= 青龙--配置文件 ===========
* # 掌上瓯海(配置方式二选一)
* 方式一:账号密码自动登录("&"符号链接也可以,但不推荐)
* export zsoh='账号#密码'
* 方式二:抓包协议头里的 X-SESSION-ID 和 X-ACCOUNT-ID
* (“兼容老版本,如果老版本的配置 【X-ACCOUNT-ID&X-SESSIONID】这种,请增加设置 export zsohOldConfigTranform='true'”)
* export zsoh='sessionId#accountId'
* 是否启用文章评论开关(注,估计这个操作容易封)
* export zsohEnabledPostComment="false" // 默认为false,代表关闭文章评论功能,如果需要开启请改为 true 或者 1
* 是否启用论坛发帖开关(注,估计这个操作容易封)
* export zsohEnabledForumPost="false" // 默认为false,代表关闭论坛发帖功能,如果需要开启请改为 true 或者 1
* 文章评论是否使用一言随机返回的名人名句
* export zsohEnabledPostCommentBy1Y="false" // 默认为false,代表关闭使用一言的随机评论,如果需要开启请改为 true 或者 1
* 是否强制点赞、分享,不开启相关判断逻辑
* export zsohForceLikeAndShare="false" // 默认为false,代表关闭根据返回的数据判断是否分享或者点赞,如果就是要尝试分享或者点赞请改为 true 或者 1
* 多账号用 换行 或 @ 分割
* ====================================
* 注: 如果没填邀请码会吃个邀请助力,如果介意,请删除该脚本,谢谢配合
* ====================================
* TodoList - 待更新内容:
* 1. 支持环境变量多账号
* 2. 支持部分APP的星社区任务
* 3. 支持自动兑换抢购商品
* 4. 支持配置不同账号对应不同的UA
* 5. 支持代理IP
* ====================================
*/
const _0x17c57d = new _0x1724be("掌上瓯海");
_0x17cd75();
const _0x1733fb = "zsoh",
_0x4423d8 = require("request"),
_0x680427 = require("fs"),
_0x4dc095 = require("form-data"),
_0x45311f = require("./utils");
let _0x5db988 = "",
_0x25ba98 = "https://app.ohnews.cn",
_0x2deb28 = "幻生提示:有错请在仓库建立issue,说明运行环境:青龙版本、机器是 本地机器、服务器 还是 手机面具模块;附上运行截图,谢谢",
_0x489135 = "请在 配置文件 里添加 " + _0x1733fb + " 变量,具体配置请看脚本最上方说明\n注册地址:" + _0x25ba98 + "\n投稿?请建Issue 或者 +Q:3385445213";
const _0x6bd43f = Number.isInteger(_0x17c57d.isNode() ? process.env[_0x1733fb + "enabledNotify"] : _0x17c57d.getdata(_0x1733fb + "EnabledNotify")) || Number.isInteger(_0x17c57d.isNode() ? process.env.enabledNotify : _0x17c57d.getdata("enabledNotify")) || 1;
let _0x591081 = 0,
_0x377ff9 = ["@", "\n"],
_0x59bfe2 = (_0x17c57d.isNode() ? process.env[_0x1733fb] : _0x17c57d.getdata(_0x1733fb)) || "",
_0x5df97a = ["1", 1, "true"]?.["includes"](_0x17c57d.isNode() ? process.env[_0x1733fb + "EnabledPostComment"] : _0x17c57d.getdata(_0x1733fb + "EnabledPostComment")) || false,
_0x117527 = ["1", 1, "true"]?.["includes"](_0x17c57d.isNode() ? process.env[_0x1733fb + "EnabledForumPost"] : _0x17c57d.getdata(_0x1733fb + "EnabledForumPost")) || false,
_0x1407cd = ["1", 1, "true"]?.["includes"](_0x17c57d.isNode() ? process.env[_0x1733fb + "EnabledPostCommentBy1Y"] : _0x17c57d.getdata(_0x1733fb + "EnabledPostCommentBy1Y")) || false,
_0x5dee2b = ["1", 1, "true"]?.["includes"](_0x17c57d.isNode() ? process.env[_0x1733fb + "ForceLikeAndShare"] : _0x17c57d.getdata(_0x1733fb + "ForceLikeAndShare")) || false,
_0x7bed49 = [],
_0x1f446a = 0,
_0x155877 = 0,
_0x3d80fe = "HT6RK9",
_0x4456e0 = "10032",
_0x1b4c3d = 78,
_0xb8814 = "vapp.tmuyun.com",
_0x2932d6 = "请注意:已" + (_0x5df97a ? "开启" : "关闭") + " 对文章的评论功能; 已" + (_0x117527 ? "开启" : "关闭") + " 论坛发帖功能; 已" + (_0x1407cd ? "开启" : "关闭") + " 一言随机评论功能; 已" + (_0x1407cd ? "开启" : "关闭") + " 强制点赞/分享功能(强行点不一定能加分)",
_0x3a19c3 = "63777162fe3fc118b09fab89",
_0x3cdca6 = ["赞", "👍", "😄", "111", "支持", "点赞"],
_0x1c3b90 = "5.0.0;00000000-6470-e940-ffff-ffffc3891f81;OPPO PBBM00;Android;9;Release",
_0x55f123 = ["643fb17ae305b4705654755e", "643fb120e305b4705654755b", "643fb125e305b4705654755c", "643fafe2e305b47056547554"],
_0x4c9130 = ["1", 1, "true"]?.["includes"](_0x17c57d.isNode() ? process.env[_0x1733fb + "OldConfigTranform"] : _0x17c57d.getdata(_0x1733fb + "OldConfigTranform")) || false,
_0xc524cb = "",
_0x79a0f7 = "";
async function _0x579794() {
console.log("\n================== 用户登录 帐号数:[" + _0x7bed49?.["length"] + "]==================\n");
let _0x4a8211 = [];
for (let _0x195bd3 of _0x7bed49) {
!_0x195bd3.sessionId ? (_0x195bd3.loadCache(), !_0x195bd3.valid ? _0x4a8211.push(await _0x195bd3.login()) : await _0x17c57d.wait(200)) : (_0x4a8211.push(await _0x195bd3.user_info()), await _0x17c57d.wait(200));
}
await Promise.all(_0x4a8211);
_0x7bed49 = _0x7bed49?.["filter"](_0x441fff => _0x441fff?.["valid"]);
if (!_0x7bed49?.["length"]) {
console.log("\n无可用账号,停止运行\n");
return;
}
console.log("\n================== 用户信息 帐号数:[" + _0x7bed49?.["length"] + "]==================\n");
_0x4a8211 = [];
for (let _0x389f51 of _0x7bed49) {
_0x4a8211.push(await _0x389f51.task_tasklist("用户信息"));
await _0x2d43c3(0.2 + Math.random() * 1);
_0x4a8211.push(await _0x389f51.get_unread_msg());
}
await Promise.all(_0x4a8211);
const _0x289c9f = _0x7bed49?.["filter"](_0x2baccd => _0x2baccd?.["jobList"]?.["find"](_0xf005ee => _0xf005ee?.["name"]?.["includes"]("签到") && _0xf005ee?.["frequency"] && _0xf005ee?.["frequency"] > _0xf005ee?.["finish_times"]));
if (_0x289c9f?.["length"]) {
console.log("\n================== 每日签到任务开始执行 待执行帐号数:[" + _0x289c9f?.["length"] + "]==================\n");
_0x4a8211 = [];
for (let _0x4cfaaa of _0x289c9f) {
_0x4a8211.push(await _0x4cfaaa.task_sign("每日签到"));
await _0x2d43c3(0.2 + Math.random() * 1);
}
await Promise.all(_0x4a8211);
} else console.log("\n无签到任务 或 当前帐号都已签到过了,无需执行签到任务\n");
const _0xc044a = _0x7bed49?.["filter"](_0x1a5d6a => _0x1a5d6a?.["jobList"]?.["find"](_0x3d8d8b => {
return _0x3d8d8b?.["name"]?.["includes"]("帖子发布") && _0x3d8d8b?.["frequency"] && _0x3d8d8b?.["frequency"] > _0x3d8d8b?.["finish_times"] && _0x117527 || _0x3d8d8b?.["name"]?.["includes"]("帖子点赞") && _0x3d8d8b?.["frequency"] && _0x3d8d8b?.["frequency"] > _0x3d8d8b?.["finish_times"];
}));
if (_0xc044a?.["length"]) {
console.log("\n================== 社区帖子相关任务开始执行 待执行帐号数:[" + _0xc044a?.["length"] + "]==================\n");
_0x4a8211 = [];
for (let _0x170f68 of _0xc044a) {
_0x4a8211.push(await _0x170f68.task_forum_info("社区帖子列表"));
await _0x2d43c3(0.2 + Math.random() * 1);
}
await Promise.all(_0x4a8211);
} else console.log("\n无社区帖子相关任务 或 当前帐号都已做完了社区帖子任务,无需执行\n");
await _0x2d43c3(0.2 + Math.random() * 1);
const _0x8f7a7c = _0x7bed49?.["filter"](_0x17bbf7 => _0x17bbf7?.["jobList"]?.["find"](_0x4d07f1 => {
return _0x4d07f1?.["name"]?.["includes"]("资讯评论") && _0x4d07f1?.["frequency"] > _0x4d07f1?.["finish_times"] && _0x5df97a || _0x4d07f1?.["name"]?.["includes"]("分享资讯") && _0x4d07f1?.["frequency"] && _0x4d07f1?.["frequency"] > _0x4d07f1?.["finish_times"] || _0x4d07f1?.["name"]?.["includes"]("资讯点赞") && _0x4d07f1?.["frequency"] && _0x4d07f1?.["frequency"] > _0x4d07f1?.["finish_times"] || _0x4d07f1?.["name"]?.["includes"]("资讯阅读") && _0x4d07f1?.["frequency"] && _0x4d07f1?.["frequency"] > _0x4d07f1?.["finish_times"];
}));
if (_0x8f7a7c?.["length"]) {
console.log("\n================== 文章列表相关任务开始执行 待执行帐号数:[" + _0x8f7a7c?.["length"] + "]==================\n");
_0x4a8211 = [];
for (let _0x1c0f14 of _0x8f7a7c) {
console.log("\n开始执行帐号[" + _0x1c0f14.index + "] 文章任务😄\n");
_0x4a8211.push(await _0x1c0f14.task_articlelist("文章列表"));
await _0x2d43c3(0.2 + Math.random() * 1);
}
await Promise.all(_0x4a8211);
} else {
console.log("\n无文章资讯任务 或 当前帐号都已做完了资讯任务,无需执行相关任务\n");
}
await _0x2d43c3(0.2 + Math.random() * 1);
const _0x34f834 = _0x7bed49?.["filter"](_0x5495f3 => _0x5495f3?.["jobList"]?.["find"](_0x1a2f07 => {
return _0x1a2f07?.["name"]?.["includes"]("本地服务") && _0x1a2f07?.["frequency"] && _0x1a2f07?.["frequency"] > _0x1a2f07?.["finish_times"];
}));
if (_0x34f834?.["length"]) {
console.log("\n================== 本地服务任务开始执行 待执行帐号数:[" + _0x34f834?.["length"] + "]==================\n");
_0x4a8211 = [];
for (let _0x18c1aa of _0x34f834) {
const _0x362474 = _0x18c1aa?.["jobList"]?.["find"](_0x244563 => {
return _0x244563?.["name"]?.["includes"]("本地服务") && _0x244563?.["frequency"] && _0x244563?.["frequency"] > _0x244563?.["finish_times"];
});
for (let _0xe9a8c8 = 0; _0xe9a8c8 < _0x362474?.["frequency"] - _0x362474?.["finish_times"]; _0xe9a8c8++) {
_0x4a8211.push(await _0x18c1aa.task_share("6", undefined, "本地服务"));
await _0x2d43c3(1 + Math.random() * 1);
}
}
await Promise.all(_0x4a8211);
} else {
console.log("\n无本地服务任务 或 当前帐号都已做完了本地服务任务,无需执行相关任务\n");
}
console.log("\n================== 删除历史评论任务开始执行 待执行帐号数:[" + _0x7bed49?.["length"] + "]==================\n");
for (let _0x19240e of _0x7bed49) {
await _0x19240e.get_comment_history();
await _0x2d43c3(1 + Math.random() * 1);
}
}
class _0x2b782f {
["valid"] = false;
constructor(_0x239aea) {
this.index = ++_0x1f446a;
this.accountId = "";
this.host = _0xb8814;
this.hostname = "https://" + this.host;
this.key = "FR*r!isE5W";
const _0x385d1a = _0x55f123,
_0x53c7e2 = Math.floor(Math.random() * _0x385d1a.length);
this.artlistdata = _0x385d1a[_0x53c7e2];
if (_0x239aea?.["length"] === 1) {
if (_0x239aea[0]?.["includes"]("#")) _0x239aea = _0x239aea[0]?.["split"]("#");else _0x239aea[0]?.["includes"]("&") && (_0x239aea = _0x239aea[0]?.["split"]("&"));
}
_0x239aea[0]?.["length"] === 11 ? (this.account = _0x239aea[0], this.password = _0x239aea[1]) : _0x4c9130 ? (this.sessionId = _0x239aea[1], this.accountId = _0x239aea[0]) : (this.sessionId = _0x239aea[0], this.accountId = _0x239aea[1]);
}
["loadCache"]() {
let _0x9b7bf2 = _0x113dd3(_0x1733fb + "_config", this.account);
if (_0x9b7bf2) {
_0x9b7bf2 = JSON.parse(_0x9b7bf2);
console.log("账号[" + this.index + "]从缓存读取成功 😄 ,其ID为: " + _0x9b7bf2?.["id"] + ",手机号为:" + this.account);
this.accountId = _0x9b7bf2?.["id"];
this.sessionId = _0x9b7bf2?.["sessionId"];
this.valid = true;
return;
}
}
async ["txt_api"]() {
try {
let _0x2611d2 = {
"method": "GET",
"url": "https://v1.hitokoto.cn/",
"qs": {
"c": "d"
},
"headers": {
"content-type": "multipart/form-data; boundary=---011000010111000001101001"
},
"formData": {}
},
_0xe311a0 = await _0x35d29f(_0x2611d2, "");
if (_0xe311a0.id) {
return _0xe311a0.hitokoto;
} else {}
} catch (_0x33e422) {
console.log(_0x33e422);
}
}
async ["task_tasklist"](_0x3fc576) {
let _0x73006 = "/api/user_mumber/numberCenter",
_0x40c176 = _0x45311f.guid(),
_0x1063b1 = _0x45311f.ts13(),
_0x445ef8 = _0x73006 + "&&" + this.sessionId + "&&" + _0x40c176 + "&&" + _0x1063b1 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x14ffcd = _0x45311f.SHA256_Encrypt(_0x445ef8);
try {
let _0x37fc59 = {
"method": "GET",
"url": "" + this.hostname + _0x73006 + "?is_new=1",
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x40c176,
"X-TIMESTAMP": _0x1063b1,
"X-SIGNATURE": _0x14ffcd,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0xa5595d = await _0x35d29f(_0x37fc59, _0x3fc576);
if (_0xa5595d.code == 0) {
!this.requestedUserInfo && (await this.user_info(), await _0x2d43c3(0.3));
_0x17626b("账号[" + this.index + "],欢迎用户:[" + _0xa5595d.data.rst.nick_name + "],当前积分为[" + _0xa5595d.data.rst.total_integral + "]");
_0xc524cb += "账号[" + this.index + "],欢迎用户:[" + _0xa5595d.data.rst.nick_name + "],当前积分为[" + _0xa5595d.data.rst.total_integral + "]\n";
await _0x2d43c3(0.3);
this.jobList = _0xa5595d.data.rst.user_task_list?.["map"](_0x472308 => {
return {
"name": _0x472308?.["name"],
"finish_times": Number(_0x472308?.["finish_times"]),
"frequency": Number(_0x472308?.["frequency"]),
"integral": _0x472308?.["integral"],
"member_task_type": _0x472308?.["member_task_type"]
};
});
if (_0xa5595d?.["data"]?.["daily_sign_info"]?.["name"]?.["includes"]("签到")) {
let _0x594ab = _0xa5595d?.["data"]?.["daily_sign_info"]?.["daily_sign_list"]?.["find"](_0x181a7b => _0x181a7b?.["current"])?.["signed"];
this.jobList.push({
"name": "每日签到",
"finish_times": _0x594ab ? 1 : 0,
"frequency": 1
});
}
_0x17626b("账号[" + this.index + "],获取任务列表成功 😄 :");
await _0x2d43c3(0.3);
let _0x54a769 = "";
await _0x2d43c3(0.2 + Math.random() * 1);
for (let _0x199f52 = 0; _0x199f52 < this.jobList.length; _0x199f52++) {
_0x54a769 += this.jobList[_0x199f52].name + "[" + this.jobList[_0x199f52].finish_times + "/" + this.jobList[_0x199f52].frequency + "]\n";
}
await _0x2d43c3(0.3);
_0x17626b(_0x54a769);
} else {
_0x17626b("账号[" + this.index + "],获取任务列表:失败 🙁 了呢,原因:" + _0xa5595d?.["message"]);
console.log(_0xa5595d);
}
} catch (_0x1f8ff9) {
console.log(_0x1f8ff9);
}
}
async ["activity_login"](_0x5edef2) {
try {
let _0x409e21 = {
"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
},
_0x42822b = await _0x35d29f(_0x409e21, _0x5edef2, true),
_0x1a22d7 = _0x42822b?.["body"];
_0x1a22d7.status == 1 ? (this.authCookie = _0x42822b?.["rawHeaders"]?.["filter"](_0x5ac36d => _0x5ac36d?.["includes"]("path=/"))?.["join"](";"), _0x17626b("账号[" + this.index + "],授权活动成功 😄"), await this.activity_vote("投票")) : _0x17626b("账号[" + this.index + "],授权活动:失败 🙁 了呢,原因:" + JSON.stringify(_0x1a22d7));
} catch (_0xdfd680) {
console.log(_0xdfd680);
}
}
async ["activity_vote"](_0x3b90ae) {
try {
let _0xfc7b06 = {
"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"
},
_0x2a07b1 = await _0x35d29f(_0xfc7b06, _0x3b90ae);
_0x2a07b1.status == 1 ? (_0x17626b("账号[" + this.index + "],投票成功 😄"), await this.activity_draw("抽奖")) : (_0x17626b("账号[" + this.index + "],投票:失败 🙁 了呢,原因:" + _0x2a07b1?.["info"]), await this.activity_get_prize("读取奖品"));
} catch (_0x1e58a5) {
console.log(_0x1e58a5);
}
}
async ["activity_draw"](_0xab5184) {
try {
let _0x3eb638 = {
"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"
},
_0x3b6ef7 = await _0x35d29f(_0x3eb638, _0xab5184);
if (_0x3b6ef7.status == 1) _0x17626b("账号[" + this.index + "],抽奖成功 😄:" + JSON.stringify(_0x3b6ef7));else {
_0x17626b("账号[" + this.index + "],抽奖失败 🙁 了呢,原因:" + _0x3b6ef7?.["info"]);
}
await this.activity_get_prize("读取奖品");
} catch (_0x6e1f56) {
console.log(_0x6e1f56);
}
}
async ["activity_get_prize"](_0x3256c6) {
try {
let _0x58d801 = {
"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"
},
_0x591bd1 = await _0x35d29f(_0x58d801, _0x3256c6);
if (_0x591bd1.status == 1) {
let _0x3d3a49 = "";
for (let _0x160cee = 0; _0x160cee < _0x591bd1?.["data"]?.["length"]; _0x160cee++) {
const _0x2937c2 = _0x591bd1?.["data"][_0x160cee];
_0x3d3a49 += "\n奖品名称:" + _0x2937c2?.["title"] + "----" + (_0x2937c2?.["url"] || _0x2937c2?.["time"]) + "----" + (_0x2937c2?.["valid"] === "1" ? "未领取" : "已领取") + "----全部信息:" + JSON.stringify(_0x2937c2);
}
_0x17626b("账号[" + this.index + "],读取奖品成功 😄:" + (_0x3d3a49 || JSON.stringify(_0x591bd1?.["data"])));
} else _0x17626b("账号[" + this.index + "],读取中奖记录失败 🙁 了呢,原因:" + _0x591bd1?.["info"]);
} catch (_0xc9e8ab) {
console.log(_0xc9e8ab);
}
}
async ["task_sign"](_0x3a10bd) {
let _0x2adffb = "/api/user_mumber/sign",
_0x328a92 = _0x45311f.guid(),
_0x54127f = _0x45311f.ts13(),
_0x4fd432 = _0x2adffb + "&&" + this.sessionId + "&&" + _0x328a92 + "&&" + _0x54127f + "&&" + this.key + "&&" + _0x1b4c3d,
_0x49549c = _0x45311f.SHA256_Encrypt(_0x4fd432);
try {
let _0x3cd50a = {
"method": "GET",
"url": "" + this.hostname + _0x2adffb,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x328a92,
"X-TIMESTAMP": _0x54127f,
"X-SIGNATURE": _0x49549c,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0xf519c = await _0x35d29f(_0x3cd50a, _0x3a10bd);
_0xf519c.code == 0 ? _0x17626b("账号[" + this.index + "],签到成功 😄 [" + _0xf519c.data.signCommonInfo.date + "],获得积分:[" + _0xf519c.data.signExperience + "]") : (_0x17626b("账号[" + this.index + "],签到:失败 🙁 了呢,原因:" + _0xf519c?.["message"]), console.log(_0xf519c));
} catch (_0x564abb) {
console.log(_0x564abb);
}
}
async ["task_forum_info"](_0x462d47) {
let _0x2c43dd = "/api/forum/forum_list",
_0xe7ba38 = _0x45311f.guid(),
_0xb1cfd9 = _0x45311f.ts13(),
_0x2277cf = _0x2c43dd + "&&" + this.sessionId + "&&" + _0xe7ba38 + "&&" + _0xb1cfd9 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x153ad5 = _0x45311f.SHA256_Encrypt(_0x2277cf);
try {
let _0x5b1f78 = {
"method": "GET",
"url": "" + this.hostname + _0x2c43dd + ("?tenantId=" + _0x1b4c3d),
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0xe7ba38,
"X-TIMESTAMP": _0xb1cfd9,
"X-SIGNATURE": _0x153ad5,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0xcd99ff = await _0x35d29f(_0x5b1f78, _0x462d47);
if (_0xcd99ff.code == 0) {
const _0x390a59 = _0xcd99ff?.["data"]?.["forum_list"]?.["length"] ? _0xcd99ff?.["data"]?.["forum_list"][0]?.["id"] : undefined;
if (_0x390a59) _0x17626b("账号[" + this.index + "],获取社区信息成功 😄 ,准备开始获取相关列表"), await this.task_forum_list(_0x390a59);else {
_0x17626b("账号[" + this.index + "],获取社区为空 🙁 ,跳过社区任务");
}
} else _0x17626b("账号[" + this.index + "],获取社区信息:失败 🙁 了呢,原因:" + _0xcd99ff?.["message"]), console.log(_0xcd99ff);
} catch (_0x51e43f) {
console.log(_0x51e43f);
}
}
async ["task_forum_list"](_0x59f47b) {
let _0x144da5 = "/api/forum/thread_list",
_0x1c9c17 = _0x45311f.guid(),
_0xe6dc4 = _0x45311f.ts13(),
_0x352dfb = _0x144da5 + "&&" + this.sessionId + "&&" + _0x1c9c17 + "&&" + _0xe6dc4 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x46eebf = _0x45311f.SHA256_Encrypt(_0x352dfb);
try {
let _0x190d72 = {
"method": "GET",
"url": "" + this.hostname + _0x144da5 + ("?forum_id=" + _0x59f47b),
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x1c9c17,
"X-TIMESTAMP": _0xe6dc4,
"X-SIGNATURE": _0x46eebf,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x1f79ae = await _0x35d29f(_0x190d72, "获取帖子");
if (_0x1f79ae.code == 0) for (let _0x2bce6e = 0; _0x2bce6e < _0x1f79ae.data.thread_list?.["length"]; _0x2bce6e++) {
if (!this?.["jobList"]?.["find"](_0x242322 => {
return _0x242322?.["name"]?.["includes"]("帖子发布") && _0x242322?.["frequency"] > _0x242322?.["finish_times"] && _0x117527 || _0x242322?.["name"]?.["includes"]("帖子点赞") && _0x242322?.["frequency"] > _0x242322?.["finish_times"];
})) {
_0x17626b("账号[" + this.index + "],社区任务已完成,跳过-----");
break;
}
_0x17626b("账号[" + this.index + "],对帖子[" + _0x1f79ae.data.thread_list[_0x2bce6e].id + "]操作-----");
await _0x2d43c3(0.3 + Math.random() * 1);
this?.["jobList"]?.["find"](_0x53e417 => {
return _0x53e417?.["name"]?.["includes"]("帖子点赞") && _0x53e417?.["frequency"] > _0x53e417?.["finish_times"];
}) ? (_0x1f79ae.data.thread_list[_0x2bce6e].already_liked ? _0x17626b("账号[" + this.index + "],之前已经对帖子[" + _0x1f79ae.data.thread_list[_0x2bce6e].id + "]点赞过,不能再次点赞") : await this.task_forum_like(_0x1f79ae.data.thread_list[_0x2bce6e].id), await _0x2d43c3(1 + Math.random() * 1)) : _0x17626b("账号[" + this.index + "],无需对帖子点赞");
this?.["jobList"]?.["find"](_0x47eae3 => {
return _0x47eae3?.["name"]?.["includes"]("帖子发布") && _0x47eae3?.["frequency"] > _0x47eae3?.["finish_times"] && _0x117527;
}) ? (await this.task_forum_post(_0x59f47b), await _0x2d43c3(1 + Math.random() * 1)) : _0x17626b("账号[" + this.index + "],无需发布帖子,可能是 已执行完毕该任务,或者 未开启该任务");
} else _0x17626b("账号[" + this.index + "],获取社区帖子:失败 🙁 了呢,原因:" + _0x1f79ae?.["message"]), console.log(_0x1f79ae);
} catch (_0x1c3c7b) {
console.log(_0x1c3c7b);
}
}
async ["task_forum_like"](_0x23310c) {
let _0xabd6d1 = "/api/forum/like",
_0x19cac0 = _0x45311f.guid(),
_0x52ac51 = _0x45311f.ts13(),
_0x13d77d = _0xabd6d1 + "&&" + this.sessionId + "&&" + _0x19cac0 + "&&" + _0x52ac51 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x2f4e79 = _0x45311f.SHA256_Encrypt(_0x13d77d);
try {
let _0x1be198 = _0x4dc095();
_0x1be198.append("target_type", "1");
_0x1be198.append("target_id", _0x23310c);
let _0x275ab0 = {
"method": "POST",
"url": "" + this.hostname + _0xabd6d1,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x19cac0,
"X-TIMESTAMP": _0x52ac51,
"X-SIGNATURE": _0x2f4e79,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryTDSOjpwy3A5ypRAo",
"Host": this.host,
"Connection": "Keep-Alive",
"Accept": "*/*",
"X-ACCOUNT-ID": this.accountId
},
"body": _0x1be198
};
_0x275ab0.headers["Content-Type"] = "multipart/form-data; boundary=" + _0x1be198.getBoundary();
let _0x4819c6 = await _0x35d29f(_0x275ab0, "点赞帖子");
if (_0x4819c6.code == 0) {
const _0x5e390f = this?.["jobList"]?.["find"](_0x4b30da => {
return _0x4b30da?.["name"]?.["includes"]("帖子点赞") && _0x4b30da?.["frequency"] > _0x4b30da?.["finish_times"];
});
_0x5e390f.finish_times++;
_0x17626b("账号[" + this.index + "],点赞帖子成功 😄 :[" + _0x23310c + "]");
} else _0x17626b("账号[" + this.index + "],点赞帖子:失败 🙁 了呢,原因:" + _0x4819c6?.["message"]), console.log(_0x4819c6);
} catch (_0x381834) {
console.log(_0x381834);
}
}
async ["task_forum_post"](_0x4c3e91) {
let _0x1d11a1 = "/api/forum/post_thread",
_0x2719d7 = _0x45311f.guid(),
_0x4ce407 = _0x45311f.ts13(),
_0x59845a = _0x1d11a1 + "&&" + this.sessionId + "&&" + _0x2719d7 + "&&" + _0x4ce407 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x19f141 = _0x45311f.SHA256_Encrypt(_0x59845a);
try {
let _0x4528e4 = _0x4dc095();
_0x4528e4.append("forum_id", _0x4c3e91);
_0x4528e4.append("title", "签到");
_0x4528e4.append("content", "今日打卡");
_0x4528e4.append("attachments", "");
_0x4528e4.append("location_name", "{}");
let _0x202fb6 = {
"method": "POST",
"url": "" + this.hostname + _0x1d11a1,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x2719d7,
"X-TIMESTAMP": _0x4ce407,
"X-SIGNATURE": _0x19f141,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryMdIuuLGEa01BfEzM",
"Host": this.host,
"Connection": "Keep-Alive",
"Accept": "*/*",
"X-ACCOUNT-ID": this.accountId
},
"body": _0x4528e4
};
_0x202fb6.headers["Content-Type"] = "multipart/form-data; boundary=" + _0x4528e4.getBoundary();
let _0x33ee6a = await _0x35d29f(_0x202fb6, "发布帖子");
if (_0x33ee6a.code == 0) {
const _0x3e806a = this?.["jobList"]?.["find"](_0x52f0cf => {
return _0x52f0cf?.["name"]?.["includes"]("帖子发布") && _0x52f0cf?.["frequency"] > _0x52f0cf?.["finish_times"];
});
_0x3e806a.finish_times++;
_0x17626b("账号[" + this.index + "],发布帖子成功 😄 :[" + _0x4c3e91 + "]");
await this.deleteForumPost(_0x33ee6a?.["data"]?.["thread_id"]);
} else _0x17626b("账号[" + this.index + "],发布帖子:失败 🙁 了呢,原因:" + _0x33ee6a?.["message"]), console.log(_0x33ee6a);
} catch (_0x351add) {
console.log(_0x351add);
}
}
async ["deleteForumPost"](_0x3ed9d2) {
let _0x1051a5 = "/api/forum/delete_thread",
_0x255eed = _0x45311f.guid(),
_0xd5db11 = _0x45311f.ts13(),
_0x33c142 = _0x1051a5 + "&&" + this.sessionId + "&&" + _0x255eed + "&&" + _0xd5db11 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x184fcd = _0x45311f.SHA256_Encrypt(_0x33c142);
try {
let _0x5c11e0 = _0x4dc095();
_0x5c11e0.append("thread_id", _0x3ed9d2);
let _0x54a5c5 = {
"method": "POST",
"url": "" + this.hostname + _0x1051a5,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x255eed,
"X-TIMESTAMP": _0xd5db11,
"X-SIGNATURE": _0x184fcd,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryi1cQvxsAzoTagcpx",
"Host": this.host,
"Connection": "Keep-Alive",
"Accept": "*/*",
"X-ACCOUNT-ID": this.accountId
},
"body": _0x5c11e0
};
_0x54a5c5.headers["Content-Type"] = "multipart/form-data; boundary=" + _0x5c11e0.getBoundary();
let _0x56b2f9 = await _0x35d29f(_0x54a5c5, "删除帖子");
_0x56b2f9.code == 0 ? _0x17626b("账号[" + this.index + "],删除帖子成功 😄 :[" + _0x3ed9d2 + "]") : (_0x17626b("账号[" + this.index + "],删除帖子:失败 🙁 了呢,原因:" + _0x56b2f9?.["message"]), console.log(_0x56b2f9));
} catch (_0x1c8521) {
console.log(_0x1c8521);
}
}
async ["task_articlelist"](_0x11f367) {
let _0x4046b2 = "/api/article/channel_list",
_0x2e50be = _0x45311f.guid(),
_0x21950c = _0x45311f.ts13(),
_0x149659 = _0x4046b2 + "&&" + this.sessionId + "&&" + _0x2e50be + "&&" + _0x21950c + "&&" + this.key + "&&" + _0x1b4c3d,
_0x3fa280 = _0x45311f.SHA256_Encrypt(_0x149659);
try {
let _0x5d92fb = {
"method": "GET",
"url": "" + this.hostname + _0x4046b2 + ("?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": _0x2e50be,
"X-TIMESTAMP": _0x21950c,
"X-SIGNATURE": _0x3fa280,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x25c784 = await _0x35d29f(_0x5d92fb, _0x11f367);
if (_0x25c784.code == 0) {
let _0x4dd447 = false;
for (let _0x44f383 = 0; _0x44f383 < _0x25c784.data.article_list?.["length"]; _0x44f383++) {
if (!this?.["jobList"]?.["find"](_0x1a88eb => {
return _0x1a88eb?.["name"]?.["includes"]("资讯评论") && _0x1a88eb?.["frequency"] > _0x1a88eb?.["finish_times"] && _0x5df97a || _0x1a88eb?.["name"]?.["includes"]("分享资讯") && _0x1a88eb?.["frequency"] > _0x1a88eb?.["finish_times"] || _0x1a88eb?.["name"]?.["includes"]("资讯点赞") && _0x1a88eb?.["frequency"] > _0x1a88eb?.["finish_times"] || _0x1a88eb?.["name"]?.["includes"]("资讯阅读") && _0x1a88eb?.["frequency"] > _0x1a88eb?.["finish_times"];
})) {
_0x17626b("账号[" + this.index + "],文章任务已完成,跳过后续文章-----");
break;
}
await this.task_comment_pre();
await _0x2d43c3(1 + Math.random() * 1);
_0x17626b("账号[" + this.index + "],对 第" + (_0x44f383 + 1) + "篇 文章[" + _0x25c784.data.article_list[_0x44f383].id + "]操作-----");
let _0x56b01d = _0x25c784.data.article_list[_0x44f383].id;
await this.task_read(_0x56b01d);
await _0x2d43c3(1 + Math.random() * 1);
if (this?.["jobList"]?.["find"](_0x18fc3a => {
return _0x18fc3a?.["name"]?.["includes"]("资讯点赞") && _0x18fc3a?.["frequency"] > _0x18fc3a?.["finish_times"];
})) {
if (_0x25c784.data.article_list[_0x44f383].liked) _0x17626b("账号[" + this.index + "],之前已经对资讯[" + _0x56b01d + "]点赞过,不能再次点赞");else !_0x25c784.data.article_list[_0x44f383].like_enabled && !_0x5dee2b ? _0x17626b("账号[" + this.index + "],资讯[" + _0x56b01d + "]未开启点赞功能,无法进行点赞") : await this.task_like(_0x56b01d);
await _0x2d43c3(1 + Math.random() * 1);
}
if (!_0x4dd447) {
if (_0x5df97a && !this.commentError && this?.["jobList"]?.["find"](_0x3960d2 => {
return _0x3960d2?.["name"]?.["includes"]("资讯评论") && _0x3960d2?.["frequency"] > _0x3960d2?.["finish_times"];
})) await this.task_comment(_0x56b01d), await _0x2d43c3(2 + Math.random() * 1);else {
if (this.commentError) {
_0x17626b("账号[" + this.index + "],评论文章遇见了一些问题 🙁 ,暂无解决方法,即将跳过后续评论,如果您有解决方法,欢迎提供,错误信息:该篇新闻不支持评论【评论失败,请重新进入当前页面!】");
_0x4dd447 = true;
}
}
} else {
if (!this?.["jobList"]?.["find"](_0x1e8170 => {
return _0x1e8170?.["name"]?.["includes"]("分享资讯") && _0x1e8170?.["frequency"] > _0x1e8170?.["finish_times"] || _0x1e8170?.["name"]?.["includes"]("资讯点赞") && _0x1e8170?.["frequency"] > _0x1e8170?.["finish_times"] || _0x1e8170?.["name"]?.["includes"]("资讯阅读") && _0x1e8170?.["frequency"] > _0x1e8170?.["finish_times"];
})) {
break;
}
}
if (this?.["jobList"]?.["find"](_0x1c97fd => {
return _0x1c97fd?.["name"]?.["includes"]("分享资讯") && _0x1c97fd?.["frequency"] > _0x1c97fd?.["finish_times"];
})) {
if (!_0x25c784.data.article_list[_0x44f383].share_enabled && !_0x5dee2b) _0x17626b("账号[" + this.index + "],文章[" + _0x56b01d + "]未开启分享功能,无法进行分享");else {
await this.task_share("3", _0x56b01d, "分享");
}
}
}
} else _0x17626b("账号[" + this.index + "],获取文章:失败 🙁 了呢,原因:" + _0x25c784?.["message"]), console.log(_0x25c784);
} catch (_0x2a42ad) {
console.log(_0x2a42ad);
}
}
async ["get_comment_history"](_0x4560e4) {
let _0x5f2e61 = "/api/account_comment/comment_list",
_0x3814b2 = _0x45311f.guid(),
_0x14e7c1 = _0x45311f.ts13(),
_0x513c7e = _0x5f2e61 + "&&" + this.sessionId + "&&" + _0x3814b2 + "&&" + _0x14e7c1 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x12f6f5 = _0x45311f.SHA256_Encrypt(_0x513c7e);
try {
let _0x58b242 = {
"method": "GET",
"url": "" + this.hostname + _0x5f2e61 + "?size=999",
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x3814b2,
"X-TIMESTAMP": _0x14e7c1,
"X-SIGNATURE": _0x12f6f5,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x3d6894 = await _0x35d29f(_0x58b242, _0x4560e4);
if (_0x3d6894.code == 0) {
let _0x502fdd = _0x3d6894.data.comment_list?.["length"];
for (let _0x8d0880 = 0; _0x8d0880 < _0x3d6894.data.comment_list?.["length"]; _0x8d0880++) {
_0x17626b("账号[" + this.index + "],对 第" + (_0x8d0880 + 1) + "个 评论[" + _0x3d6894.data.comment_list[_0x8d0880].id + "]删除,删除总数量:" + _0x3d6894.data.comment_list?.["length"] + ",待删除:" + _0x502fdd + " 条-----");
let _0xc09235 = _0x3d6894.data.comment_list[_0x8d0880].id;
await this.deleteComment(_0xc09235);
_0x502fdd--;
await _0x2d43c3(1 + Math.random() * 1);
}
} else _0x17626b("账号[" + this.index + "],删除评论:失败 🙁 了呢,原因:" + _0x3d6894?.["message"]), console.log(_0x3d6894);
} catch (_0x230bd3) {
console.log(_0x230bd3);
}
}
async ["task_read"](_0x29995c) {
let _0x1e676a = "/api/article/detail",
_0x1bfd75 = _0x45311f.guid(),
_0x376f31 = _0x45311f.ts13(),
_0x377897 = _0x1e676a + "&&" + this.sessionId + "&&" + _0x1bfd75 + "&&" + _0x376f31 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x293f38 = _0x45311f.SHA256_Encrypt(_0x377897);
try {
let _0x166c6f = {
"method": "GET",
"url": "" + this.hostname + _0x1e676a + "?id=" + _0x29995c,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x1bfd75,
"X-TIMESTAMP": _0x376f31,
"X-SIGNATURE": _0x293f38,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x4c7436 = await _0x35d29f(_0x166c6f, "阅读文章");
if (_0x4c7436.code == 0) {
const _0x4f0dbb = this?.["jobList"]?.["find"](_0x2fa8ee => {
return _0x2fa8ee?.["name"]?.["includes"]("资讯阅读") && _0x2fa8ee?.["frequency"] > _0x2fa8ee?.["finish_times"];
});
_0x4f0dbb && _0x4f0dbb.finish_times++;
_0x17626b("账号[" + this.index + "],阅读文章成功 😄 :[" + _0x4c7436.data.article.id + "]");
} else _0x17626b("账号[" + this.index + "],阅读文章:失败 🙁 了呢,原因:" + _0x4c7436?.["message"]);
} catch (_0xfc44b1) {
console.log(_0xfc44b1);
}
}
async ["task_like"](_0x3c614f) {
let _0x4fdb26 = "/api/favorite/like",
_0x31bb42 = _0x45311f.guid(),
_0x1cef7a = _0x45311f.ts13(),
_0xd75a29 = _0x4fdb26 + "&&" + this.sessionId + "&&" + _0x31bb42 + "&&" + _0x1cef7a + "&&" + this.key + "&&" + _0x1b4c3d,
_0x59c093 = _0x45311f.SHA256_Encrypt(_0xd75a29);
try {
let _0x16ee45 = {
"method": "POST",
"url": "" + this.hostname + _0x4fdb26,
"headers": {
"X-SESSION-ID": "" + this.sessionId,
"X-REQUEST-ID": _0x31bb42,
"X-TIMESTAMP": _0x1cef7a,
"X-SIGNATURE": _0x59c093,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"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": _0x3c614f
}
},
_0x6cfe30 = await _0x35d29f(_0x16ee45, "点赞文章");
if (_0x6cfe30.code == 0) {
const _0x270988 = this?.["jobList"]?.["find"](_0x42ee57 => {
return _0x42ee57?.["name"]?.["includes"]("资讯点赞") && _0x42ee57?.["frequency"] > _0x42ee57?.["finish_times"];
});
_0x270988.finish_times++;
_0x17626b("账号[" + this.index + "],点赞文章成功 😄 :[" + _0x3c614f + "]");
} else _0x17626b("账号[" + this.index + "],用户查询:失败 🙁 了呢,原因:" + _0x6cfe30?.["message"]), console.log(_0x6cfe30);
} catch (_0x32fed2) {
console.log(_0x32fed2);
}
}
async ["RSA_Encrypt"](_0x63577a) {
const _0xdb25ec = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD6XO7e9YeAOs+cFqwa7ETJ+WXizPqQeXv68i5vqw9pFREsrqiBTRcg7wB0RIp3rJkDpaeVJLsZqYm5TW7FWx/iOiXFc+zCPvaKZric2dXCw27EvlH5rq+zwIPDAJHGAfnn1nmQH7wR3PCatEIb8pz5GFlTHMlluw4ZYmnOwg+thwIDAQAB\n-----END PUBLIC KEY-----",
_0x46c77e = _0x45311f.RSA_Encrypt(_0x63577a, _0xdb25ec);
return _0x46c77e;
}
async ["loginByCode"](_0x803d9e, _0x3ee31c) {
try {
let _0x53dccc = "/api/zbtxz/login",
_0x4ed9a7 = _0x45311f.guid(),
_0x13ce3a = _0x45311f.ts13(),
_0x41abf0 = _0x53dccc + "&&" + (this.sessionId || _0x803d9e) + "&&" + _0x4ed9a7 + "&&" + _0x13ce3a + "&&" + this.key + "&&" + _0x1b4c3d,
_0x39ffc0 = _0x45311f.SHA256_Encrypt(_0x41abf0),
_0x5875d1 = {
"method": "POST",
"url": "" + this.hostname + _0x53dccc,
"headers": {
"X-SESSION-ID": "" + (this.sessionId || _0x803d9e),
"X-REQUEST-ID": _0x4ed9a7,
"X-TIMESTAMP": _0x13ce3a,
"X-SIGNATURE": _0x39ffc0,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive"
},
"form": "code=" + _0x3ee31c
},
_0x3394f5 = await _0x35d29f(_0x5875d1, "取Token");
if (_0x3394f5.code == 0) {
this.valid = true;
this.sessionId = _0x3394f5.data.session.id;
this.accountId = _0x3394f5.data.session.account || _0x3394f5.data.session.account_id;
_0x5ee65e(_0x1733fb + "_config", this.account, JSON.stringify({
"id": this.accountId,
"sessionId": this.sessionId
}));
_0x17626b("账号[" + this.index + "],取Token成功 😄 ");
} else this.valid = false, _0x17626b("账号[" + this.index + "],取Token:失败 🙁 了呢,原因:" + _0x3394f5?.["message"]), console.log(_0x3394f5);
} catch (_0x15e7ce) {
console.log(_0x15e7ce);
}
}
async ["loginInit"](_0x3ba070) {
try {
const _0x2b8fb5 = "";
let _0x5e807f = "/api/account/init",
_0x1408ed = _0x45311f.guid(),
_0x2b4be9 = _0x45311f.ts13(),
_0x97390f = _0x5e807f + "&&" + _0x1408ed + "&&" + _0x2b4be9 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x123687 = _0x45311f.SHA256_Encrypt(_0x97390f),
_0xbac8ea = {
"method": "POST",
"url": "" + this.hostname + _0x5e807f,
"headers": {
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-SIGNATURE": _0x123687,
"X-REQUEST-ID": _0x1408ed,
"Content-Length": _0x2b8fb5?.["length"],
"X-SESSION-ID": "",
"X-TENANT-ID": _0x1b4c3d,
"X-TIMESTAMP": _0x2b4be9
},
"form": _0x2b8fb5
};
this.authCookie && (_0xbac8ea.headers.Cookie = this.authCookie);
let _0x3fda3c = await _0x35d29f(_0xbac8ea, "登录初始化");
_0x3fda3c.code == 0 ? (_0x17626b("账号[" + this.index + "],登录初始化成功 😄 "), _0x79a0f7 = _0x3fda3c.data.session.id, await this.loginByCode(_0x3fda3c.data.session.id, _0x3ba070)) : (this.valid = false, _0x17626b("账号[" + this.index + "],登录初始化:失败 🙁 了呢,原因:" + _0x3fda3c?.["message"]));
} catch (_0x538e7b) {
console.log(_0x538e7b);
}
}
async ["login"]() {
let _0x59febd = "/web/oauth/credential_auth",
_0x3a1713 = _0x45311f.guid(),
_0x582aff = _0x45311f.ts13(),
_0x1be8de = _0x59febd + "&&" + _0x3a1713 + "&&" + _0x582aff + "&&" + this.key + "&&" + _0x1b4c3d,
_0x4d7d4c = _0x45311f.SHA256_Encrypt(_0x1be8de);
try {
let _0x66b702 = {
"method": "POST",
"url": "https://passport.tmuyun.com/web/oauth/credential_auth",
"headers": {
"X-TIMESTAMP": _0x582aff,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "passport.tmuyun.com",
"Connection": "Keep-Alive",
"X-SIGNATURE": _0x4d7d4c,
"X-REQUEST-ID": _0x3a1713
},
"form": "client_id=" + (_0x4456e0 || "10001") + "&password=" + encodeURIComponent(await this.RSA_Encrypt(this.password)) + "&phone_number=" + this.account
};
if (this.authCookie) {
_0x66b702.headers.Cookie = this.authCookie;
}
let _0x6e6b3 = await _0x35d29f(_0x66b702, "登录");
if (_0x6e6b3.code == 0) {
_0x17626b("账号[" + this.index + "],登录成功 😄 ");
!_0x79a0f7 ? await this.loginInit(_0x6e6b3.data.authorization_code.code) : await this.loginByCode(_0x79a0f7, _0x6e6b3.data.authorization_code.code);
} else this.valid = false, _0x17626b("账号[" + this.index + "],登录:失败 🙁 了呢,原因:" + _0x6e6b3?.["message"]), console.log(_0x6e6b3);
} catch (_0x5ee8df) {
console.log(_0x5ee8df);
}
}
async ["app_start"]() {
let _0x3572b9 = "/api/app_start_page/list/new",
_0x5b8166 = _0x45311f.guid(),
_0x182c4a = _0x45311f.ts13(),
_0x25ebad = _0x3572b9 + "&&" + _0x3a19c3 + "&&" + _0x5b8166 + "&&" + _0x182c4a + "&&" + this.key + "&&" + _0x1b4c3d,
_0x240b03 = _0x45311f.SHA256_Encrypt(_0x25ebad);
try {
let _0x3a8ada = {
"method": "GET",
"url": "" + this.hostname + _0x3572b9 + "?height=2206&width=1080",
"headers": {
"X-SESSION-ID": "" + _0x3a19c3,
"X-REQUEST-ID": _0x5b8166,
"X-TIMESTAMP": _0x182c4a,
"X-SIGNATURE": _0x240b03,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x3f703c = await _0x35d29f(_0x3a8ada, "App启动中");
if (_0x3f703c.code == 0) {
_0x17626b("账号[" + this.index + "],App启动成功 😄 ");
} else {
_0x17626b("账号[" + this.index + "],App启动:失败 🙁 了呢,原因:" + _0x3f703c?.["message"]);
}
} catch (_0x4bf8b2) {
console.log(_0x4bf8b2);
}
}
async ["web_start"]() {
let _0x3bd1f3 = "/web/init",
_0x4b5e76 = _0x45311f.guid(),
_0x162942 = _0x45311f.ts13(),
_0x2886dc = _0x3bd1f3 + "&&" + _0x3a19c3 + "&&" + _0x4b5e76 + "&&" + _0x162942 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x5f2a56 = _0x45311f.SHA256_Encrypt(_0x2886dc);
try {
let _0x1ab1f1 = {
"method": "GET",
"url": "https://passport.tmuyun.com/web/init?client_id=" + _0x4456e0,
"headers": {
"X-SESSION-ID": "" + _0x3a19c3,
"X-REQUEST-ID": _0x4b5e76,
"X-TIMESTAMP": _0x162942,
"X-SIGNATURE": _0x5f2a56,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "passport.tmuyun.com",
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x41043d = await _0x35d29f(_0x1ab1f1, "Web初始化中", true),
_0x3c78b2 = _0x41043d?.["body"];
if (_0x3c78b2.code == 0) {
let _0xe89fa8 = _0x41043d?.["rawHeaders"]?.["find"](_0x51dbfe => _0x51dbfe?.["includes"]("SESSION"));
_0xe89fa8 && (this.authCookie = _0xe89fa8);
_0x17626b("账号[" + this.index + "],Web初始化成功 😄 ");
} else _0x17626b("账号[" + this.index + "],Web初始化:失败 🙁 了呢,原因:" + _0x3c78b2?.["message"]);
} catch (_0x2801ce) {
console.log(_0x2801ce);
}
}
async ["iframe_start"]() {
let _0x43b68b = "/api/bullet_frame/detail",
_0x24fc42 = _0x45311f.guid(),
_0x62f314 = _0x45311f.ts13(),
_0x4687e4 = _0x43b68b + "&&" + _0x3a19c3 + "&&" + _0x24fc42 + "&&" + _0x62f314 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x2bff5b = _0x45311f.SHA256_Encrypt(_0x4687e4);
try {
let _0x3574d9 = {
"method": "GET",
"url": "" + this.hostname + _0x43b68b,
"headers": {
"X-SESSION-ID": "" + _0x3a19c3,
"X-REQUEST-ID": _0x24fc42,
"X-TIMESTAMP": _0x62f314,
"X-SIGNATURE": _0x2bff5b,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Host": this.host,
"Connection": "Keep-Alive",
"X-ACCOUNT-ID": this.accountId
}
},
_0x3a118f = await _0x35d29f(_0x3574d9, "启动WebView中");
_0x3a118f.code == 0 ? _0x17626b("账号[" + this.index + "],启动WebView成功 😄 ") : _0x17626b("账号[" + this.index + "],启动WebView:失败 🙁 了呢,原因:" + _0x3a118f?.["message"]);
} catch (_0x3e30b8) {
console.log(_0x3e30b8);
}
}
async ["get_app_version"]() {
let _0x137867 = "/api/app_version/detail",
_0x30eff3 = _0x45311f.guid(),
_0x144bc9 = _0x45311f.ts13(),
_0x53ac0e = _0x137867 + "&&" + _0x3a19c3 + "&&" + _0x30eff3 + "&&" + _0x144bc9 + "&&" + this.key + "&&" + _0x1b4c3d,
_0x2fb464 = _0x45311f.SHA256_Encrypt(_0x53ac0e);
try {
let _0x56129e = {
"method": "GET",
"url": "" + this.hostname + _0x137867,
"headers": {
"X-SESSION-ID": "" + _0x3a19c3,
"X-REQUEST-ID": _0x30eff3,
"X-TIMESTAMP": _0x144bc9,
"X-SIGNATURE": _0x2fb464,
"X-TENANT-ID": _0x1b4c3d,
"User-Agent": _0x1c3b90,
"Cache-Control": "no-cache",