forked from smallfawn/decode_action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.js
2555 lines (2554 loc) · 86.8 KB
/
output.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
//Wed Nov 20 2024 02:23:23 GMT+0000 (Coordinated Universal Time)
//Base:https://github.com/echo094/decode-js
//Modify:https://github.com/canc3s/decode_action
const $ = new Env("望潮");
(() => {
function b(ab) {
b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (af) {
return typeof af;
} : function (af) {
return af && "function" == typeof Symbol && af.constructor === Symbol && af !== Symbol.prototype ? "symbol" : typeof af;
};
return b(ab);
}
function c(ab, ac) {
var ae = "undefined" != typeof Symbol && ab[Symbol.iterator] || ab["@@iterator"];
if (!ae) {
if (Array.isArray(ab) || (ae = d(ab)) || ac && ab && "number" == typeof ab.length) {
ae && (ab = ae);
var af = 0,
ag = function () {};
return {
s: ag,
n: function () {
var am = {
done: !0
};
return af >= ab.length ? am : {
done: !1,
value: ab[af++]
};
},
e: function (al) {
throw al;
},
f: ag
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var ah,
ai = !0,
aj = !1;
return {
s: function () {
ae = ae.call(ab);
},
n: function () {
var am = ae.next();
ai = am.done;
return am;
},
e: function (am) {
aj = !0;
ah = am;
},
f: function () {
try {
ai || null == ae.return || ae.return();
} finally {
if (aj) {
throw ah;
}
}
}
};
}
function d(ab, ac) {
if (ab) {
if ("string" == typeof ab) {
return f(ab, ac);
}
var ad = {}.toString.call(ab).slice(8, -1);
"Object" === ad && ab.constructor && (ad = ab.constructor.name);
return "Map" === ad || "Set" === ad ? Array.from(ab) : "Arguments" === ad || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ad) ? f(ab, ac) : void 0;
}
}
function f(ab, ac) {
(null == ac || ac > ab.length) && (ac = ab.length);
for (var ad = 0, ae = Array(ac); ad < ac; ad++) {
ae[ad] = ab[ad];
}
return ae;
}
function g() {
'use strict';
g = function () {
return ad;
};
var ac,
ad = {},
ae = Object.prototype,
af = ae.hasOwnProperty,
ag = Object.defineProperty || function (aI, aJ, aK) {
aI[aJ] = aK.value;
},
ah = "function" == typeof Symbol ? Symbol : {},
ai = ah.iterator || "@@iterator",
aj = ah.asyncIterator || "@@asyncIterator",
ak = ah.toStringTag || "@@toStringTag";
function al(aI, aJ, aK) {
var aL = {
value: aK,
enumerable: !0,
configurable: !0,
writable: !0
};
Object.defineProperty(aI, aJ, aL);
return aI[aJ];
}
try {
al({}, "");
} catch (aJ) {
al = function (aL, aM, aN) {
return aL[aM] = aN;
};
}
function am(aL, aM, aN, aO) {
var aQ = aM && aM.prototype instanceof at ? aM : at,
aR = Object.create(aQ.prototype),
aS = new aG(aO || []);
ag(aR, "_invoke", {
value: aC(aL, aN, aS)
});
return aR;
}
function an(aL, aM, aN) {
try {
return {
type: "normal",
arg: aL.call(aM, aN)
};
} catch (aS) {
var aP = {};
aP.type = "throw";
aP.arg = aS;
return aP;
}
}
ad.wrap = am;
var ao = "suspendedStart",
ap = "suspendedYield",
aq = "executing",
ar = "completed",
as = {};
function at() {}
function au() {}
function av() {}
var aw = {};
al(aw, ai, function () {
return this;
});
var ax = Object.getPrototypeOf,
ay = ax && ax(ax(aH([])));
ay && ay !== ae && af.call(ay, ai) && (aw = ay);
av.prototype = at.prototype = Object.create(aw);
var az = av.prototype;
function aA(aL) {
["next", "throw", "return"].forEach(function (aO) {
al(aL, aO, function (aQ) {
return this._invoke(aO, aQ);
});
});
}
function aB(aL, aM) {
function aP(aQ, aR, aS, aT) {
var aV = an(aL[aQ], aL, aR);
if ("throw" !== aV.type) {
var aW = aV.arg,
aX = aW.value;
return aX && "object" == b(aX) && af.call(aX, "__await") ? aM.resolve(aX.__await).then(function (b0) {
aP("next", b0, aS, aT);
}, function (b0) {
aP("throw", b0, aS, aT);
}) : aM.resolve(aX).then(function (b0) {
aW.value = b0;
aS(aW);
}, function (b0) {
return aP("throw", b0, aS, aT);
});
}
aT(aV.arg);
}
var aO;
ag(this, "_invoke", {
value: function (aQ, aR) {
function aT() {
return new aM(function (aV, aW) {
aP(aQ, aR, aV, aW);
});
}
return aO = aO ? aO.then(aT, aT) : aT();
}
});
}
function aC(aL, aM, aN) {
var aP = ao;
return function (aR, aS) {
if (aP === aq) {
throw Error("Generator is already running");
}
if (aP === ar) {
if ("throw" === aR) {
throw aS;
}
var aU = {
value: ac,
done: !0
};
return aU;
}
for (aN.method = aR, aN.arg = aS;;) {
var aV = aN.delegate;
if (aV) {
var aW = aD(aV, aN);
if (aW) {
if (aW === as) {
continue;
}
return aW;
}
}
if ("next" === aN.method) {
aN.sent = aN._sent = aN.arg;
} else {
if ("throw" === aN.method) {
if (aP === ao) {
throw aP = ar, aN.arg;
}
aN.dispatchException(aN.arg);
} else {
"return" === aN.method && aN.abrupt("return", aN.arg);
}
}
aP = aq;
var aX = an(aL, aM, aN);
if ("normal" === aX.type) {
if (aP = aN.done ? ar : ap, aX.arg === as) {
continue;
}
var aY = {};
aY.value = aX.arg;
aY.done = aN.done;
return aY;
}
"throw" === aX.type && (aP = ar, aN.method = "throw", aN.arg = aX.arg);
}
};
}
function aD(aL, aM) {
var aN = aM.method,
aO = aL.iterator[aN];
if (aO === ac) {
aM.delegate = null;
"throw" === aN && aL.iterator.return && (aM.method = "return", aM.arg = ac, aD(aL, aM), "throw" === aM.method) || "return" !== aN && (aM.method = "throw", aM.arg = new TypeError("The iterator does not provide a '" + aN + "' method"));
return as;
}
var aP = an(aO, aL.iterator, aM.arg);
if ("throw" === aP.type) {
aM.method = "throw";
aM.arg = aP.arg;
aM.delegate = null;
return as;
}
var aQ = aP.arg;
return aQ ? aQ.done ? (aM[aL.resultName] = aQ.value, aM.next = aL.nextLoc, "return" !== aM.method && (aM.method = "next", aM.arg = ac), aM.delegate = null, as) : aQ : (aM.method = "throw", aM.arg = new TypeError("iterator result is not an object"), aM.delegate = null, as);
}
function aE(aL) {
var aO = {
tryLoc: aL[0]
};
var aP = aO;
1 in aL && (aP.catchLoc = aL[1]);
2 in aL && (aP.finallyLoc = aL[2], aP.afterLoc = aL[3]);
this.tryEntries.push(aP);
}
function aF(aL) {
var aM = aL.completion || {};
aM.type = "normal";
delete aM.arg;
aL.completion = aM;
}
function aG(aL) {
var aM = {
tryLoc: "root"
};
this.tryEntries = [aM];
aL.forEach(aE, this);
this.reset(!0);
}
function aH(aL) {
if (aL || "" === aL) {
var aN = aL[ai];
if (aN) {
return aN.call(aL);
}
if ("function" == typeof aL.next) {
return aL;
}
if (!isNaN(aL.length)) {
var aO = -1,
aP = function aS() {
for (; ++aO < aL.length;) {
if (af.call(aL, aO)) {
aS.value = aL[aO];
aS.done = !1;
return aS;
}
}
aS.value = ac;
aS.done = !0;
return aS;
};
return aP.next = aP;
}
}
throw new TypeError(b(aL) + " is not iterable");
}
au.prototype = av;
ag(az, "constructor", {
value: av,
configurable: !0
});
ag(av, "constructor", {
value: au,
configurable: !0
});
au.displayName = al(av, ak, "GeneratorFunction");
ad.isGeneratorFunction = function (aL) {
var aN = "function" == typeof aL && aL.constructor;
return !!aN && (aN === au || "GeneratorFunction" === (aN.displayName || aN.name));
};
ad.mark = function (aL) {
Object.setPrototypeOf ? Object.setPrototypeOf(aL, av) : (aL.__proto__ = av, al(aL, ak, "GeneratorFunction"));
aL.prototype = Object.create(az);
return aL;
};
ad.awrap = function (aL) {
var aM = {
__await: aL
};
return aM;
};
aA(aB.prototype);
al(aB.prototype, aj, function () {
return this;
});
ad.AsyncIterator = aB;
ad.async = function (aL, aM, aN, aO, aP) {
void 0 === aP && (aP = Promise);
var aS = new aB(am(aL, aM, aN, aO), aP);
return ad.isGeneratorFunction(aM) ? aS : aS.next().then(function (aU) {
return aU.done ? aU.value : aS.next();
});
};
aA(az);
al(az, ak, "Generator");
al(az, ai, function () {
return this;
});
al(az, "toString", function () {
return "[object Generator]";
});
ad.keys = function (aL) {
var aN = Object(aL),
aO = [];
for (var aP in aN) aO.push(aP);
aO.reverse();
return function aQ() {
for (; aO.length;) {
var aR = aO.pop();
if (aR in aN) {
aQ.value = aR;
aQ.done = !1;
return aQ;
}
}
aQ.done = !0;
return aQ;
};
};
ad.values = aH;
aG.prototype = {
constructor: aG,
reset: function (aL) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = ac, this.done = !1, this.delegate = null, this.method = "next", this.arg = ac, this.tryEntries.forEach(aF), !aL) {
for (var aN in this) "t" === aN.charAt(0) && af.call(this, aN) && !isNaN(+aN.slice(1)) && (this[aN] = ac);
}
},
stop: function () {
this.done = !0;
var aL = this.tryEntries[0].completion;
if ("throw" === aL.type) {
throw aL.arg;
}
return this.rval;
},
dispatchException: function (aL) {
if (this.done) {
throw aL;
}
var aN = this;
function aT(aU, aV) {
aQ.type = "throw";
aQ.arg = aL;
aN.next = aU;
aV && (aN.method = "next", aN.arg = ac);
return !!aV;
}
for (var aO = this.tryEntries.length - 1; aO >= 0; --aO) {
var aP = this.tryEntries[aO],
aQ = aP.completion;
if ("root" === aP.tryLoc) {
return aT("end");
}
if (aP.tryLoc <= this.prev) {
var aR = af.call(aP, "catchLoc"),
aS = af.call(aP, "finallyLoc");
if (aR && aS) {
if (this.prev < aP.catchLoc) {
return aT(aP.catchLoc, !0);
}
if (this.prev < aP.finallyLoc) {
return aT(aP.finallyLoc);
}
} else {
if (aR) {
if (this.prev < aP.catchLoc) {
return aT(aP.catchLoc, !0);
}
} else {
if (!aS) {
throw Error("try statement without catch or finally");
}
if (this.prev < aP.finallyLoc) {
return aT(aP.finallyLoc);
}
}
}
}
}
},
abrupt: function (aL, aM) {
for (var aO = this.tryEntries.length - 1; aO >= 0; --aO) {
var aP = this.tryEntries[aO];
if (aP.tryLoc <= this.prev && af.call(aP, "finallyLoc") && this.prev < aP.finallyLoc) {
var aQ = aP;
break;
}
}
aQ && ("break" === aL || "continue" === aL) && aQ.tryLoc <= aM && aM <= aQ.finallyLoc && (aQ = null);
var aR = aQ ? aQ.completion : {};
aR.type = aL;
aR.arg = aM;
return aQ ? (this.method = "next", this.next = aQ.finallyLoc, as) : this.complete(aR);
},
complete: function (aL, aM) {
if ("throw" === aL.type) {
throw aL.arg;
}
"break" === aL.type || "continue" === aL.type ? this.next = aL.arg : "return" === aL.type ? (this.rval = this.arg = aL.arg, this.method = "return", this.next = "end") : "normal" === aL.type && aM && (this.next = aM);
return as;
},
finish: function (aL) {
for (var aO = this.tryEntries.length - 1; aO >= 0; --aO) {
var aP = this.tryEntries[aO];
if (aP.finallyLoc === aL) {
this.complete(aP.completion, aP.afterLoc);
aF(aP);
return as;
}
}
},
catch: function (aL) {
for (var aN = this.tryEntries.length - 1; aN >= 0; --aN) {
var aO = this.tryEntries[aN];
if (aO.tryLoc === aL) {
var aP = aO.completion;
if ("throw" === aP.type) {
var aQ = aP.arg;
aF(aO);
}
return aQ;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (aL, aM, aN) {
this.delegate = {
iterator: aH(aL),
resultName: aM,
nextLoc: aN
};
"next" === this.method && (this.arg = ac);
return as;
}
};
return ad;
}
function h(ab, ac, ad, ae, af, ag, ah) {
try {
var ai = ab[ag](ah),
aj = ai.value;
} catch (am) {
return void ad(am);
}
ai.done ? ac(aj) : Promise.resolve(aj).then(ae, af);
}
function i(ab) {
return function () {
var ae = this,
af = arguments;
return new Promise(function (ag, ah) {
var aj = ab.apply(ae, af);
function ak(am) {
h(aj, ag, ah, ak, al, "next", am);
}
function al(am) {
h(aj, ag, ah, ak, al, "throw", am);
}
ak(void 0);
});
};
}
var j = ($.isNode() ? process.env.WangChao : $.getdata("WangChao")) || "",
k = void 0,
l = "",
m = "64",
n = "",
o = "",
p = "",
q = "",
r = "",
s = "",
t = "",
u = "",
v = "",
w = "10019",
x = "",
y = "",
z = "FR*r!isE5W";
function A() {
return B.apply(this, arguments);
}
function B() {
B = i(g().mark(function ad() {
var af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG;
return g().wrap(function (aI) {
for (;;) {
switch (aI.prev = aI.next) {
case 0:
if (console.log("作者:@xzxxn777\n频道:https://t.me/xzxxn777\n群组:https://t.me/xzxxn7777\n自用机场推荐:https://xn--diqv0fut7b.com\n"), j) {
aI.next = 6;
break;
}
console.log("先去boxjs填写账号密码");
aI.next = 5;
return a9("先去boxjs填写账号密码");
case 5:
return aI.abrupt("return");
case 6:
aI.next = 8;
return a7();
case 8:
k = aI.sent;
af = j.split(" ");
ag = c(af);
aI.prev = 11;
ag.s();
case 13:
if ((ah = ag.n()).done) {
aI.next = 166;
break;
}
ai = ah.value;
console.log("随机生成UA");
aj = a5();
n = aj.ua;
o = aj.commonUa;
p = aj.uuid;
console.log(n);
console.log(o);
u = ai.split("&")[0];
v = ai.split("&")[1];
console.log("用户:".concat(u, "开始任务"));
console.log("获取sessionId");
aI.next = 28;
return I("/api/account/init");
case 28:
ak = aI.sent;
x = ak.data.session.id;
console.log(x);
console.log("获取signature_key");
aI.next = 34;
return C("/web/init?client_id=".concat(w));
case 34:
al = aI.sent;
l = al.data.client.signature_key;
console.log(l);
console.log("获取code");
aI.next = 40;
return E("/web/oauth/credential_auth");
case 40:
if (am = aI.sent, am.data) {
aI.next = 44;
break;
}
console.log(am.message);
return aI.abrupt("continue", 164);
case 44:
an = am.data.authorization_code.code;
console.log(an);
console.log("登录");
aI.next = 49;
return I("/api/zbtxz/login", "check_token=&code=".concat(an, "&token=&type=-1&union_id="));
case 49:
ao = aI.sent;
console.log("登录成功");
t = ao.data.session.account_id;
x = ao.data.session.id;
aI.next = 55;
return G("/api/app_feature_switch/list");
case 55:
ap = aI.sent;
console.log("进入app:".concat(ap.message));
console.log("————————————");
console.log("阅读抽奖");
q = "";
console.log("获取登录cookie");
aI.next = 63;
return K("/prod-api/user-read/app/login?id=".concat(t, "&sessionId=").concat(x, "&deviceId=").concat(p));
case 63:
if (q = aI.sent, q) {
aI.next = 66;
break;
}
return aI.abrupt("continue", 164);
case 66:
console.log(q);
aI.next = 69;
return M("/prod-api/user-read/list/".concat(a4()));
case 69:
aq = aI.sent;
ar = c(aq.data.articleIsReadList);
aI.prev = 71;
ar.s();
case 73:
if ((as = ar.n()).done) {
aI.next = 89;
break;
}
at = as.value;
console.log("文章:".concat(at.title));
aI.next = 78;
return G("/api/article/detail?id=".concat(at.newsId));
case 78:
aI.sent;
aI.next = 81;
return G("/api/article/read_time?channel_article_id=".concat(at.newsId, "&is_end=true&read_time=7934"));
case 81:
aI.sent;
au = JSON.stringify({
timestamp: Date.now(),
articleId: at.id,
accountId: t
});
aI.next = 85;
return M("/prod-api/already-read/article/new?signature=".concat(a0(au)), au);
case 85:
av = aI.sent;
console.log("阅读:".concat(av.msg));
case 87:
aI.next = 73;
break;
case 89:
aI.next = 94;
break;
case 91:
aI.prev = 91;
aI.t0 = aI.catch(71);
ar.e(aI.t0);
case 94:
aI.prev = 94;
ar.f();
return aI.finish(94);
case 97:
aI.next = 99;
return M("/prod-api/user-read-count/count/".concat(a4()));
case 99:
if (aw = aI.sent, console.log("剩余抽奖次数:".concat(aw.data)), !(aw.data > 0)) {
aI.next = 119;
break;
}
s = "";
aI.next = 105;
return O("/tzrb/user/loginWC?accountId=".concat(t, "&sessionId=").concat(x));
case 105:
s = aI.sent;
console.log("获取抽奖cookie");
console.log(s);
aI.next = 110;
return Q("/tzrb/awardUpgrade/list?activityId=67");
case 110:
ax = aI.sent;
ay = ax.data;
az = g().mark(function aQ() {
var aS, aT;
return g().wrap(function (aV) {
for (;;) {
switch (aV.prev = aV.next) {
case 0:
aV.next = 2;
return S("/tzrb/userAwardRecordUpgrade/saveUpdate", "activityId=67&sessionId=undefined&sig=undefined&token=undefined");
case 2:
aS = aV.sent;
aT = ay.findIndex(function (aX) {
return aX.id == aS.data;
});
-1 != aT ? (console.log("抽奖获得:".concat(ay[aT].title)), y += "用户:".concat(u, " 抽奖获得:").concat(ay[aT].title, "\n")) : console.log(JSON.stringify(aS));
case 5:
case "end":
return aV.stop();
}
}
}, aQ);
});
aA = 0;
case 114:
if (!(aA < aw.data)) {
aI.next = 119;
break;
}
return aI.delegateYield(az(), "t1", 116);
case 116:
aA++;
aI.next = 114;
break;
case 119:
console.log("————————————");
console.log("答题抽奖");
r = "";
console.log("获取登录cookie");
aI.next = 125;
return U("/wcgames/WordFillGame/login/?accountId=".concat(t, "&sessionId=").concat(x));
case 125:
if (r = aI.sent, r) {
aI.next = 128;
break;
}
return aI.abrupt("continue", 164);
case 128:
console.log(r);
aI.next = 131;
return W("/wcgames/WordFillGame/get_user_info/");
case 131:
aB = aI.sent;
console.log("今日答题进度:".concat(aB.data.answerCount, "/5 已闯过").concat(aB.data.level, "关"));
aC = aB.data.answerCount;
case 134:
if (!(aC < 5)) {
aI.next = 150;
break;
}
console.log("获取题目");
aI.next = 138;
return W("/wcgames/WordFillGame/get_question/");
case 138:
if (aE = aI.sent, null != aE && null !== (aD = aE.data) && void 0 !== aD && aD.question) {
aI.next = 142;
break;
}
console.log(aE.message);
return aI.abrupt("break", 150);
case 142:
console.log("题目:".concat(aE.data.question, " 答案:").concat(aE.data.answer));
aI.next = 145;
return Y("/wcgames/WordFillGame/submit_answer/", "accountId=".concat(t));
case 145:
aF = aI.sent;
console.log("答题:".concat(aF.message));
case 147:
aC++;
aI.next = 134;
break;
case 150:
aI.next = 152;
return W("/wcgames/WordFillGame/get_user_info/");
case 152:
if (aB = aI.sent, 1 != aB.data.isGetRed) {
aI.next = 156;
break;
}
console.log("已领取支付宝红包");
return aI.abrupt("continue", 164);
case 156:
if (1 == aB.data.alipayId_bind) {
aI.next = 159;
break;
}
console.log("未绑定支付宝");
return aI.abrupt("continue", 164);
case 159:
aI.next = 161;
return W("/wcgames/WordFillGame/generate_custom_redpacket/");
case 161:
aG = aI.sent;
console.log("答题抽奖获得支付宝红包:".concat(aG.message, "元"));
y += "用户:".concat(u, " 答题抽奖获得支付宝红包:").concat(aG.message, "元\n");
case 164:
aI.next = 13;
break;
case 166:
aI.next = 171;
break;
case 168:
aI.prev = 168;
aI.t2 = aI.catch(11);
ag.e(aI.t2);
case 171:
aI.prev = 171;
ag.f();
return aI.finish(171);
case 174:
if (!y) {
aI.next = 177;
break;
}
aI.next = 177;
return a9(y);
case 177:
case "end":
return aI.stop();
}
}
}, ad, null, [[11, 168, 171, 174], [71, 91, 94, 97]]);
}));
return B.apply(this, arguments);
}
function C(ab) {
return D.apply(this, arguments);
}
function D() {
D = i(g().mark(function ad(ae) {
return g().wrap(function (ag) {
for (;;) {
switch (ag.prev = ag.next) {
case 0:
return ag.abrupt("return", new Promise(function (ai) {
var ak = {
url: "https://passport.tmuyun.com".concat(ae),
headers: {
Connection: "Keep-Alive",
"Cache-Control": "no-cache",
"X-REQUEST-ID": a3(),
"Accept-Encoding": "gzip",
"user-agent": n
}
};
$.get(ak, function () {
var am = i(g().mark(function ao(ap, aq, ar) {
return g().wrap(function (at) {
for (;;) {
switch (at.prev = at.next) {
case 0:
try {
ap ? (console.log("".concat(JSON.stringify(ap))), console.log("".concat($.name, " API请求失败,请检查网路重试"))) : ai(JSON.parse(ar));
} catch (ax) {
$.logErr(ax, aq);
} finally {
ai();
}
case 1:
case "end":
return at.stop();
}
}
}, ao);
}));
return function (ap, aq, ar) {
return am.apply(this, arguments);
};
}());
}));
case 1:
case "end":
return ag.stop();
}
}
}, ad);
}));
return D.apply(this, arguments);
}
function E(ab) {
return F.apply(this, arguments);
}
function F() {
F = i(g().mark(function ab(ac) {
var ae;
return g().wrap(function (af) {
for (;;) {
switch (af.prev = af.next) {
case 0:
ae = a1();
return af.abrupt("return", new Promise(function (ah) {
var aj = {
Connection: "Keep-Alive",
"X-REQUEST-ID": ae.uuid,
"X-SIGNATURE": ae.signature,
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
"Accept-Encoding": "gzip",
"user-agent": n
};
var ak = {
url: "https://passport.tmuyun.com".concat(ac),
headers: aj,
body: ae.body
};
$.post(ak, function () {
var am = i(g().mark(function an(ao, ap, aq) {
return g().wrap(function (as) {
for (;;) {
switch (as.prev = as.next) {
case 0:
try {
ao ? (console.log("".concat(JSON.stringify(ao))), console.log("".concat($.name, " API请求失败,请检查网路重试"))) : ah(JSON.parse(aq));
} catch (aw) {
$.logErr(aw, ap);
} finally {
ah();
}
case 1:
case "end":
return as.stop();
}
}
}, an);
}));
return function (ao, ap, aq) {
return am.apply(this, arguments);
};
}());
}));
case 2:
case "end":
return af.stop();
}
}
}, ab);
}));
return F.apply(this, arguments);
}
function G(ab) {
return H.apply(this, arguments);
}
function H() {
H = i(g().mark(function ac(ad) {
var ae;
return g().wrap(function (af) {
for (;;) {
switch (af.prev = af.next) {
case 0:
ae = a2(ad);
return af.abrupt("return", new Promise(function (ah) {
var aj = {
url: "https://vapp.taizhou.com.cn".concat(ad),
headers: {
Connection: "Keep-Alive",
"X-TIMESTAMP": ae.time,
"X-SESSION-ID": x,
"X-REQUEST-ID": ae.uuid,
"X-SIGNATURE": ae.signature,
"X-TENANT-ID": m,
"X-ACCOUNT-ID": t,
"Cache-Control": "no-cache",
"Accept-Encoding": "gzip",
"user-agent": o
}
};
$.get(aj, function () {
var ak = i(g().mark(function al(am, an, ao) {
return g().wrap(function (aq) {
for (;;) {
switch (aq.prev = aq.next) {
case 0:
if (aq.prev = 0, !am) {
aq.next = 6;
break;
}
console.log("".concat(JSON.stringify(am)));
console.log("".concat($.name, " API请求失败,请检查网路重试"));
aq.next = 9;
break;
case 6:
aq.next = 8;
return $.wait(2000);
case 8:
ah(JSON.parse(ao));
case 9:
aq.next = 14;