@seayoo-web/gamer-api 2.5.1 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +277 -269
- package/package.json +5 -5
- package/types/src/event.config/feature.d.ts +3 -2
- package/types/src/event.config/feature.lottery.d.ts +1 -1
- package/types/src/event.config/feature.zeroChatgpt.d.ts +7 -0
- package/types/src/event.config/reward.d.ts +1 -1
- package/types/src/event.enums.d.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var me = Object.defineProperty;
|
|
2
2
|
var de = (a, t, r) => t in a ? me(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
|
|
3
|
-
var
|
|
3
|
+
var d = (a, t, r) => de(a, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { isComboWebView as ge } from "@seayoo-web/combo-webview";
|
|
5
|
-
import { isPlainObject as
|
|
5
|
+
import { isPlainObject as V, useConsole as pe, Support as y, usePromise as _e, pruneURL as be, queryString as P, pruneObject as c, v as e, omitFields as R, typedObjectGuard as s, parseJSON as ye, removePara as M } from "@seayoo-web/utils";
|
|
6
6
|
function fe(a) {
|
|
7
|
-
return
|
|
7
|
+
return V(a, "gamer_token") && typeof a.gamer_token == "string";
|
|
8
8
|
}
|
|
9
9
|
function Q(a) {
|
|
10
|
-
return
|
|
10
|
+
return V(a);
|
|
11
11
|
}
|
|
12
12
|
const w = pe("GamerApiSDK");
|
|
13
13
|
function he(a) {
|
|
@@ -58,23 +58,23 @@ const ke = {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, k = "gamer_token";
|
|
61
|
-
class
|
|
61
|
+
class Sr {
|
|
62
62
|
constructor(t, r) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
d(this, "$NetRequest");
|
|
64
|
+
d(this, "$idToken", "");
|
|
65
|
+
d(this, "$weixinToken", "");
|
|
66
|
+
d(this, "$gamerToken", "");
|
|
67
|
+
d(this, "req");
|
|
68
|
+
d(this, "storage");
|
|
69
69
|
this.storage = y.wx ? ve : ke;
|
|
70
70
|
const n = he(t) ? t : `https://${be(t)}`;
|
|
71
|
-
this.$NetRequest = r, this.req = r({
|
|
71
|
+
if (this.$NetRequest = r, this.req = r({
|
|
72
72
|
baseURL: `${n}/v1`,
|
|
73
73
|
timeout: 1e4,
|
|
74
74
|
maxRetry: 2,
|
|
75
75
|
retryInterval: "2EB",
|
|
76
|
-
retryResolve({ method:
|
|
77
|
-
return
|
|
76
|
+
retryResolve({ method: i, status: o }) {
|
|
77
|
+
return i === "GET" && o < 0;
|
|
78
78
|
},
|
|
79
79
|
responseRule: {
|
|
80
80
|
ok: { resolve: "body" },
|
|
@@ -85,12 +85,14 @@ class qr {
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
// 使用箭头函数绑定执行上下文
|
|
88
|
-
requestTransformer: (
|
|
89
|
-
this.$gamerToken && (
|
|
88
|
+
requestTransformer: (i) => {
|
|
89
|
+
this.$gamerToken && (i.headers.Authorization = `Bearer ${this.$gamerToken}`);
|
|
90
90
|
}
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
}), y.window) {
|
|
92
|
+
const i = /^(?:localhost|[\d.]+):\d{4}$/.test(location.host), o = P("gamer_token");
|
|
93
|
+
(ge() || i && o) && (this.$gamerToken = o);
|
|
94
|
+
}
|
|
95
|
+
this.$gamerToken || this.loadGamerTokenCache();
|
|
94
96
|
}
|
|
95
97
|
get NetRequest() {
|
|
96
98
|
return this.$NetRequest;
|
|
@@ -217,14 +219,14 @@ const Ce = {
|
|
|
217
219
|
Male: "male",
|
|
218
220
|
/** 女 */
|
|
219
221
|
Female: "female"
|
|
220
|
-
},
|
|
222
|
+
}, Ve = e.string().enum(Ce).lock(), Re = {
|
|
221
223
|
/** 积分增加 */
|
|
222
224
|
Increase: "increase",
|
|
223
225
|
/** 积分减少 */
|
|
224
226
|
Decrease: "decrease",
|
|
225
227
|
/** 积分过期 */
|
|
226
228
|
Expired: "expired"
|
|
227
|
-
}, je = e.string().enum(
|
|
229
|
+
}, je = e.string().enum(Re).lock(), Te = {
|
|
228
230
|
/** 游戏内购买 */
|
|
229
231
|
Order: "order",
|
|
230
232
|
/** 游戏内消耗 */
|
|
@@ -303,7 +305,7 @@ const Ce = {
|
|
|
303
305
|
name: e.string(),
|
|
304
306
|
avatar_url: e.string(),
|
|
305
307
|
bio: e.string(),
|
|
306
|
-
gender:
|
|
308
|
+
gender: Ve,
|
|
307
309
|
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() })
|
|
308
310
|
}).lock(), W = e.object({
|
|
309
311
|
address_id: e.number(),
|
|
@@ -362,9 +364,9 @@ const Ce = {
|
|
|
362
364
|
updated_at: e.number(),
|
|
363
365
|
redeemable_quantity: e.number().optional()
|
|
364
366
|
}).lock(), Ae = e.object({
|
|
365
|
-
...
|
|
367
|
+
...R(ee.shape, "tag"),
|
|
366
368
|
product: te.clone().optional()
|
|
367
|
-
}).lock(),
|
|
369
|
+
}).lock(), Lr = e.union(
|
|
368
370
|
e.object({
|
|
369
371
|
server_id: e.string(),
|
|
370
372
|
role_id: e.string()
|
|
@@ -406,10 +408,10 @@ const Ce = {
|
|
|
406
408
|
redemptions: e.array(Be),
|
|
407
409
|
next_token: e.string().optional()
|
|
408
410
|
});
|
|
409
|
-
class
|
|
411
|
+
class Er {
|
|
410
412
|
constructor(t) {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
+
d(this, "token");
|
|
414
|
+
d(this, "req");
|
|
413
415
|
this.token = t, this.req = t.req;
|
|
414
416
|
}
|
|
415
417
|
/**
|
|
@@ -688,7 +690,7 @@ const j = {
|
|
|
688
690
|
ExternalCode: "external_gift_code",
|
|
689
691
|
/** 空奖励 */
|
|
690
692
|
VoidItem: "void_item"
|
|
691
|
-
}, ne = e.string().enum(j).lock(),
|
|
693
|
+
}, ne = e.string().enum(j).lock(), Pr = j, re = ne, We = {
|
|
692
694
|
/** 世游通行证 ID / Combo ID */
|
|
693
695
|
UserId: "user_id",
|
|
694
696
|
/** 游戏角色 ID */
|
|
@@ -736,7 +738,9 @@ const j = {
|
|
|
736
738
|
/** 签到 */
|
|
737
739
|
CheckIn: "check_in",
|
|
738
740
|
/** 领取激活码 */
|
|
739
|
-
ClaimActivationKey: "claim_activation_key"
|
|
741
|
+
ClaimActivationKey: "claim_activation_key",
|
|
742
|
+
/** 不朽箴言特有的 AI 聊天 */
|
|
743
|
+
ZeroChatgpt: "zero_chatgpt"
|
|
740
744
|
}, rt = e.string().enum(u).lock(), it = {
|
|
741
745
|
/** 累计游戏内活跃值 */
|
|
742
746
|
Active: "player_active_points",
|
|
@@ -770,7 +774,7 @@ const j = {
|
|
|
770
774
|
Failed: "failed",
|
|
771
775
|
/** 奖励已发货 */
|
|
772
776
|
Delivered: "delivered"
|
|
773
|
-
},
|
|
777
|
+
}, $r = e.string().enum(_).lock(), $ = {
|
|
774
778
|
/**
|
|
775
779
|
* 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
|
|
776
780
|
*
|
|
@@ -823,7 +827,7 @@ const j = {
|
|
|
823
827
|
Claimed: "claimed",
|
|
824
828
|
/** 领奖失败 */
|
|
825
829
|
Fail: "fail"
|
|
826
|
-
},
|
|
830
|
+
}, Ur = e.string().enum(v).lock(), lt = {
|
|
827
831
|
/** 发起组队 */
|
|
828
832
|
Assemble: "assemble",
|
|
829
833
|
/** 加入队伍 */
|
|
@@ -834,14 +838,14 @@ const j = {
|
|
|
834
838
|
ChangeVisibility: "change_visibility",
|
|
835
839
|
/** 查询组队信息 */
|
|
836
840
|
Query: "query"
|
|
837
|
-
},
|
|
841
|
+
}, Fr = e.string().enum(lt).lock(), mt = {
|
|
838
842
|
/** 查询抽奖券 */
|
|
839
843
|
Query: "query",
|
|
840
844
|
/** 开奖 */
|
|
841
845
|
Draw: "draw",
|
|
842
846
|
/** 领奖 */
|
|
843
847
|
Claim: "claim"
|
|
844
|
-
},
|
|
848
|
+
}, Dr = e.string().enum(mt).lock(), dt = e.string().enum(R(j, "GiftCode", "LotteryTicket")), D = e.object({
|
|
845
849
|
reward_item_id: e.number(),
|
|
846
850
|
reward_amount: e.number(),
|
|
847
851
|
reward_item_name: e.string(),
|
|
@@ -861,7 +865,7 @@ const j = {
|
|
|
861
865
|
feature_reward_type: e.string().enum("regular"),
|
|
862
866
|
reward_details: e.array(gt)
|
|
863
867
|
})
|
|
864
|
-
).satisfies().lock(),
|
|
868
|
+
).satisfies().lock(), l = e.object({
|
|
865
869
|
feature_name: e.string(),
|
|
866
870
|
feature_id: e.number(),
|
|
867
871
|
description: e.string(),
|
|
@@ -872,7 +876,7 @@ const j = {
|
|
|
872
876
|
engage_account: et,
|
|
873
877
|
feature_rewards: pt.clone().optional()
|
|
874
878
|
}), _t = u.Cashback, bt = e.object({
|
|
875
|
-
...
|
|
879
|
+
...l.shape,
|
|
876
880
|
feature_type: e.string().enum(_t),
|
|
877
881
|
config: e.object({
|
|
878
882
|
order_start_time: e.number(),
|
|
@@ -881,24 +885,24 @@ const j = {
|
|
|
881
885
|
claim_rewards_end_time: e.number()
|
|
882
886
|
})
|
|
883
887
|
}), yt = u.CheckIn, ft = e.object({
|
|
884
|
-
...
|
|
888
|
+
...l.shape,
|
|
885
889
|
feature_type: e.string().enum(yt)
|
|
886
890
|
}), ht = u.ClaimActivationKey, wt = e.object({
|
|
887
|
-
...
|
|
891
|
+
...l.shape,
|
|
888
892
|
feature_type: e.string().enum(ht)
|
|
889
893
|
}), kt = u.ClaimRewards, vt = e.object({
|
|
890
|
-
...
|
|
894
|
+
...l.shape,
|
|
891
895
|
feature_type: e.string().enum(kt)
|
|
892
|
-
}), Ct = u.Comment,
|
|
893
|
-
...
|
|
896
|
+
}), Ct = u.Comment, Vt = e.object({
|
|
897
|
+
...l.shape,
|
|
894
898
|
feature_type: e.string().enum(Ct),
|
|
895
899
|
config: e.object({
|
|
896
900
|
comments: e.array(e.string()),
|
|
897
901
|
send_rate: e.number()
|
|
898
902
|
})
|
|
899
|
-
}),
|
|
900
|
-
...
|
|
901
|
-
feature_type: e.string().enum(
|
|
903
|
+
}), Rt = u.Follow, jt = e.object({
|
|
904
|
+
...l.shape,
|
|
905
|
+
feature_type: e.string().enum(Rt),
|
|
902
906
|
config: e.object({
|
|
903
907
|
platform: e.string(),
|
|
904
908
|
platform_icon: e.string().optional(),
|
|
@@ -911,7 +915,7 @@ const j = {
|
|
|
911
915
|
icon_url: e.string(),
|
|
912
916
|
count: e.number()
|
|
913
917
|
}), xt = e.object({
|
|
914
|
-
...
|
|
918
|
+
...l.shape,
|
|
915
919
|
feature_type: e.string().enum(Tt),
|
|
916
920
|
config: e.object({
|
|
917
921
|
gift_items: e.array(qt),
|
|
@@ -919,15 +923,15 @@ const j = {
|
|
|
919
923
|
mp_qrcode_url: e.string().optional()
|
|
920
924
|
})
|
|
921
925
|
}), St = u.Invite, Lt = e.object({
|
|
922
|
-
...
|
|
926
|
+
...l.shape,
|
|
923
927
|
feature_type: e.string().enum(St),
|
|
924
928
|
config: e.object({
|
|
925
929
|
share_url: e.string()
|
|
926
930
|
})
|
|
927
931
|
}), Et = u.InvitedRegister, Pt = e.object({
|
|
928
|
-
...
|
|
932
|
+
...l.shape,
|
|
929
933
|
feature_type: e.string().enum(Et)
|
|
930
|
-
}), $t = e.string().enum(
|
|
934
|
+
}), $t = e.string().enum(R(j, "GiftCode", "LotteryTicket")), Ut = u.Lottery, Ft = e.object({
|
|
931
935
|
reward_item_id: e.number(),
|
|
932
936
|
reward_item_name: e.string(),
|
|
933
937
|
reward_item_type: $t,
|
|
@@ -936,7 +940,7 @@ const j = {
|
|
|
936
940
|
reward_amount: e.number(),
|
|
937
941
|
reward_remaining_stock: e.number()
|
|
938
942
|
}), Dt = e.object({
|
|
939
|
-
...
|
|
943
|
+
...l.shape,
|
|
940
944
|
feature_type: e.string().enum(Ut),
|
|
941
945
|
config: e.object({
|
|
942
946
|
consume_item_id: e.number(),
|
|
@@ -947,17 +951,17 @@ const j = {
|
|
|
947
951
|
rewards: e.array(Ft)
|
|
948
952
|
})
|
|
949
953
|
}), It = u.LotteryDraw, Gt = e.object({
|
|
950
|
-
...
|
|
954
|
+
...l.shape,
|
|
951
955
|
feature_type: e.string().enum(It),
|
|
952
956
|
config: e.object({
|
|
953
957
|
draw_not_before: e.number(),
|
|
954
958
|
draw_not_after: e.number()
|
|
955
959
|
})
|
|
956
960
|
}), At = u.Preregister, Nt = e.object({
|
|
957
|
-
...
|
|
961
|
+
...l.shape,
|
|
958
962
|
feature_type: e.string().enum(At)
|
|
959
963
|
}), Ot = u.Quest, Bt = e.object({
|
|
960
|
-
...
|
|
964
|
+
...l.shape,
|
|
961
965
|
feature_type: e.string().enum(Ot),
|
|
962
966
|
config: e.object({
|
|
963
967
|
objective: ie,
|
|
@@ -973,10 +977,10 @@ const j = {
|
|
|
973
977
|
}).optional()
|
|
974
978
|
})
|
|
975
979
|
}), Mt = u.Register, Qt = e.object({
|
|
976
|
-
...
|
|
980
|
+
...l.shape,
|
|
977
981
|
feature_type: e.string().enum(Mt)
|
|
978
982
|
}), Kt = u.Share, Ht = e.object({
|
|
979
|
-
...
|
|
983
|
+
...l.shape,
|
|
980
984
|
feature_type: e.string().enum(Kt),
|
|
981
985
|
config: e.object({
|
|
982
986
|
share_platform: e.string(),
|
|
@@ -984,20 +988,20 @@ const j = {
|
|
|
984
988
|
icon_url: e.string().optional()
|
|
985
989
|
})
|
|
986
990
|
}), zt = u.Subscribe, Jt = e.object({
|
|
987
|
-
...
|
|
991
|
+
...l.shape,
|
|
988
992
|
feature_type: e.string().enum(zt),
|
|
989
993
|
config: e.object({
|
|
990
994
|
weixin_template_ids: e.array(e.string())
|
|
991
995
|
})
|
|
992
996
|
}), Zt = u.Survey, Xt = e.object({
|
|
993
|
-
...
|
|
997
|
+
...l.shape,
|
|
994
998
|
feature_type: e.string().enum(Zt),
|
|
995
999
|
config: e.object({
|
|
996
1000
|
survey_id: e.string(),
|
|
997
1001
|
survey_url: e.string()
|
|
998
1002
|
})
|
|
999
1003
|
}), Yt = u.Team, Wt = e.object({
|
|
1000
|
-
...
|
|
1004
|
+
...l.shape,
|
|
1001
1005
|
feature_type: e.string().enum(Yt),
|
|
1002
1006
|
config: e.object({
|
|
1003
1007
|
max_members: e.number().min(1),
|
|
@@ -1014,7 +1018,7 @@ const j = {
|
|
|
1014
1018
|
finalists: e.bool(),
|
|
1015
1019
|
last_vote_time: e.number()
|
|
1016
1020
|
}), nn = e.object({
|
|
1017
|
-
...
|
|
1021
|
+
...l.shape,
|
|
1018
1022
|
feature_type: e.string().enum(en),
|
|
1019
1023
|
config: e.object({
|
|
1020
1024
|
vote_feature_ids: e.array(e.number()),
|
|
@@ -1024,11 +1028,14 @@ const j = {
|
|
|
1024
1028
|
options: e.array(tn),
|
|
1025
1029
|
rewards: e.array(D)
|
|
1026
1030
|
})
|
|
1027
|
-
}), rn = e.
|
|
1031
|
+
}), rn = u.ZeroChatgpt, on = e.object({
|
|
1032
|
+
...l.shape,
|
|
1033
|
+
feature_type: e.string().enum(rn)
|
|
1034
|
+
}), an = e.union(
|
|
1028
1035
|
bt,
|
|
1029
1036
|
ft,
|
|
1030
1037
|
vt,
|
|
1031
|
-
|
|
1038
|
+
Vt,
|
|
1032
1039
|
jt,
|
|
1033
1040
|
xt,
|
|
1034
1041
|
Lt,
|
|
@@ -1043,27 +1050,28 @@ const j = {
|
|
|
1043
1050
|
Xt,
|
|
1044
1051
|
Wt,
|
|
1045
1052
|
nn,
|
|
1046
|
-
wt
|
|
1047
|
-
|
|
1053
|
+
wt,
|
|
1054
|
+
on
|
|
1055
|
+
).key("feature_type").satisfies(), sn = e.object({
|
|
1048
1056
|
event_name: e.string(),
|
|
1049
1057
|
rules: e.string(),
|
|
1050
1058
|
since: e.number(),
|
|
1051
1059
|
until: e.number(),
|
|
1052
1060
|
visit_count: e.number().optional(),
|
|
1053
|
-
features: e.array(
|
|
1054
|
-
}).lock(), S = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()),
|
|
1061
|
+
features: e.array(an)
|
|
1062
|
+
}).lock(), S = e.union(e.string().pattern("NumberString", /^\d+$/), e.number()), cn = e.object({
|
|
1055
1063
|
order_total_amount: S,
|
|
1056
1064
|
cashback_total_amount: S,
|
|
1057
1065
|
game_item_count: S
|
|
1058
|
-
}),
|
|
1066
|
+
}), un = e.object({
|
|
1059
1067
|
activation_key: e.string().disallow("")
|
|
1060
|
-
}),
|
|
1068
|
+
}), ln = e.object({
|
|
1061
1069
|
gift_code: e.string()
|
|
1062
|
-
}),
|
|
1070
|
+
}), mn = e.object({
|
|
1063
1071
|
user_id: e.string(),
|
|
1064
1072
|
name: e.string().optional(),
|
|
1065
1073
|
avatar_url: e.string().optional()
|
|
1066
|
-
}),
|
|
1074
|
+
}), dn = e.object({
|
|
1067
1075
|
lottery_count: e.number()
|
|
1068
1076
|
}), I = e.object({
|
|
1069
1077
|
reward_id: e.number(),
|
|
@@ -1083,21 +1091,21 @@ const j = {
|
|
|
1083
1091
|
feature_type: rt,
|
|
1084
1092
|
receive_time: e.number(),
|
|
1085
1093
|
extra_data: e.record(e.unknown()).optional()
|
|
1086
|
-
}),
|
|
1094
|
+
}), gn = e.string().enum(v.Unknown, v.Pending), pn = e.union(
|
|
1087
1095
|
e.object({
|
|
1088
1096
|
ticket: e.string(),
|
|
1089
|
-
status:
|
|
1097
|
+
status: gn
|
|
1090
1098
|
}),
|
|
1091
1099
|
e.object({
|
|
1092
1100
|
ticket: e.string(),
|
|
1093
|
-
status: e.string().enum(
|
|
1101
|
+
status: e.string().enum(R(v, "Unknown", "Pending")),
|
|
1094
1102
|
reward: I
|
|
1095
1103
|
})
|
|
1096
|
-
).satisfies(),
|
|
1097
|
-
tickets: e.array(
|
|
1098
|
-
}),
|
|
1104
|
+
).satisfies(), _n = e.object({
|
|
1105
|
+
tickets: e.array(pn)
|
|
1106
|
+
}), bn = e.object({
|
|
1099
1107
|
platforms: e.array(e.string())
|
|
1100
|
-
}),
|
|
1108
|
+
}), yn = e.object({
|
|
1101
1109
|
objective: ie,
|
|
1102
1110
|
progress: e.number(),
|
|
1103
1111
|
completion_value: e.number().optional(),
|
|
@@ -1113,22 +1121,22 @@ const j = {
|
|
|
1113
1121
|
})
|
|
1114
1122
|
)
|
|
1115
1123
|
}).optional()
|
|
1116
|
-
}),
|
|
1124
|
+
}), fn = e.object({
|
|
1117
1125
|
platform: e.string()
|
|
1118
|
-
}),
|
|
1126
|
+
}), hn = e.object({
|
|
1119
1127
|
weixin_openid: e.string()
|
|
1120
|
-
}),
|
|
1128
|
+
}), wn = e.object({
|
|
1121
1129
|
serial_number: e.number()
|
|
1122
|
-
}),
|
|
1130
|
+
}), kn = e.object({
|
|
1123
1131
|
team_code: e.string(),
|
|
1124
1132
|
leader_name: e.string(),
|
|
1125
1133
|
total_members: e.number()
|
|
1126
|
-
}),
|
|
1134
|
+
}), Ir = e.object({
|
|
1127
1135
|
is_leader: e.bool(),
|
|
1128
1136
|
is_myself: e.bool().optional(),
|
|
1129
1137
|
role_name: e.string(),
|
|
1130
1138
|
server_name: e.string()
|
|
1131
|
-
}),
|
|
1139
|
+
}), vn = e.object({
|
|
1132
1140
|
team_code: e.string(),
|
|
1133
1141
|
visibility: ut,
|
|
1134
1142
|
members: e.array(
|
|
@@ -1138,14 +1146,14 @@ const j = {
|
|
|
1138
1146
|
server_name: e.string()
|
|
1139
1147
|
})
|
|
1140
1148
|
)
|
|
1141
|
-
}),
|
|
1149
|
+
}), Cn = e.object({
|
|
1142
1150
|
option_sn: e.string()
|
|
1143
|
-
}),
|
|
1151
|
+
}), Vn = e.object({
|
|
1144
1152
|
role: e.string(),
|
|
1145
1153
|
content: e.string()
|
|
1146
|
-
}), Cn = e.object({
|
|
1147
|
-
conversations: e.array(vn)
|
|
1148
1154
|
}), Rn = e.object({
|
|
1155
|
+
conversations: e.array(Vn)
|
|
1156
|
+
}), jn = e.object({
|
|
1149
1157
|
user_id: e.string(),
|
|
1150
1158
|
name: e.string(),
|
|
1151
1159
|
avatar_url: e.string(),
|
|
@@ -1153,25 +1161,25 @@ const j = {
|
|
|
1153
1161
|
video_note: e.number(),
|
|
1154
1162
|
created_at: e.number()
|
|
1155
1163
|
}), G = e.union(
|
|
1156
|
-
pn,
|
|
1157
|
-
ln,
|
|
1158
|
-
fn,
|
|
1159
|
-
un,
|
|
1160
1164
|
bn,
|
|
1161
|
-
|
|
1162
|
-
yn,
|
|
1163
|
-
an,
|
|
1164
|
-
cn,
|
|
1165
|
+
dn,
|
|
1165
1166
|
wn,
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
sn,
|
|
1167
|
+
mn,
|
|
1168
|
+
fn,
|
|
1169
1169
|
Cn,
|
|
1170
|
+
hn,
|
|
1171
|
+
cn,
|
|
1172
|
+
ln,
|
|
1173
|
+
vn,
|
|
1174
|
+
yn,
|
|
1175
|
+
_n,
|
|
1176
|
+
un,
|
|
1177
|
+
Rn,
|
|
1170
1178
|
e.custom(
|
|
1171
1179
|
"EmptyObject",
|
|
1172
|
-
(a) =>
|
|
1180
|
+
(a) => V(a) && Object.keys(a).length === 0
|
|
1173
1181
|
)
|
|
1174
|
-
).satisfies().lock(),
|
|
1182
|
+
).satisfies().lock(), Tn = e.object({
|
|
1175
1183
|
reward_id: e.number(),
|
|
1176
1184
|
reward_item_id: e.number(),
|
|
1177
1185
|
reward_item_type: re,
|
|
@@ -1184,7 +1192,7 @@ const j = {
|
|
|
1184
1192
|
reward_item_rating: e.number(),
|
|
1185
1193
|
receive_time: e.number(),
|
|
1186
1194
|
extra_data: e.union(...G.validators, e.record(e.unknown())).satisfies().optional()
|
|
1187
|
-
}),
|
|
1195
|
+
}), qn = e.object({
|
|
1188
1196
|
reward_id: e.number(),
|
|
1189
1197
|
reward_item_id: e.number(),
|
|
1190
1198
|
reward_item_name: e.string(),
|
|
@@ -1195,7 +1203,7 @@ const j = {
|
|
|
1195
1203
|
reward_status: oe,
|
|
1196
1204
|
reward_source: F,
|
|
1197
1205
|
extra_data: e.record(e.unknown()).optional()
|
|
1198
|
-
}),
|
|
1206
|
+
}), xn = e.object({
|
|
1199
1207
|
engagement_id: e.number(),
|
|
1200
1208
|
user_id: e.string(),
|
|
1201
1209
|
event_id: e.number(),
|
|
@@ -1205,15 +1213,15 @@ const j = {
|
|
|
1205
1213
|
server_id: e.string().optional(),
|
|
1206
1214
|
role_id: e.string().optional(),
|
|
1207
1215
|
created_at: e.number(),
|
|
1208
|
-
rewards: e.array(
|
|
1209
|
-
}).lock(),
|
|
1216
|
+
rewards: e.array(Tn).optional()
|
|
1217
|
+
}).lock(), Sn = e.object({
|
|
1210
1218
|
allowed: e.bool(),
|
|
1211
1219
|
registered: e.bool()
|
|
1212
|
-
}),
|
|
1220
|
+
}), Ln = e.object({
|
|
1213
1221
|
feature_id: e.number(),
|
|
1214
1222
|
can_engage: e.bool(),
|
|
1215
1223
|
has_unclaimed_rewards: e.bool()
|
|
1216
|
-
}),
|
|
1224
|
+
}), En = e.object({
|
|
1217
1225
|
engagement_id: e.number(),
|
|
1218
1226
|
engagement: e.object({
|
|
1219
1227
|
engagement_id: e.number(),
|
|
@@ -1221,41 +1229,41 @@ const j = {
|
|
|
1221
1229
|
feature_id: e.number(),
|
|
1222
1230
|
data: G.clone().optional()
|
|
1223
1231
|
}).optional(),
|
|
1224
|
-
rewards: e.array(
|
|
1232
|
+
rewards: e.array(qn).optional(),
|
|
1225
1233
|
scan: e.bool().optional()
|
|
1226
|
-
}),
|
|
1234
|
+
}), Pn = e.object({
|
|
1227
1235
|
reward_id: e.number(),
|
|
1228
1236
|
reward_status: U
|
|
1229
|
-
}),
|
|
1230
|
-
engagements: e.union(e.array(
|
|
1231
|
-
}), Fn = s({
|
|
1232
|
-
status: e.array(xn)
|
|
1233
|
-
}), Dn = s({
|
|
1234
|
-
engagements_counts: e.record(e.number())
|
|
1237
|
+
}), $n = e.guard(sn), Un = e.guard(Sn), L = s({ count: e.number() }), Fn = s({ first_visit: e.bool() }), Dn = s({
|
|
1238
|
+
engagements: e.union(e.array(jn), e.array(kn))
|
|
1235
1239
|
}), In = s({
|
|
1236
|
-
|
|
1240
|
+
status: e.array(Ln)
|
|
1241
|
+
}), Gn = s({
|
|
1242
|
+
engagements_counts: e.record(e.number())
|
|
1243
|
+
}), An = s({
|
|
1244
|
+
engagements: e.array(xn),
|
|
1237
1245
|
next_token: e.string().optional()
|
|
1238
|
-
}),
|
|
1239
|
-
claimed_items: e.array(
|
|
1240
|
-
}),
|
|
1246
|
+
}), Nn = e.guard(En), On = s({
|
|
1247
|
+
claimed_items: e.array(Pn)
|
|
1248
|
+
}), Bn = s({
|
|
1241
1249
|
rewards: e.array(I)
|
|
1242
|
-
}),
|
|
1250
|
+
}), Mn = s({
|
|
1243
1251
|
reward_status: U
|
|
1244
|
-
}),
|
|
1252
|
+
}), Qn = s({
|
|
1245
1253
|
user_rewards: e.array(I),
|
|
1246
1254
|
next_token: e.string().optional()
|
|
1247
|
-
}),
|
|
1255
|
+
}), Kn = s({
|
|
1248
1256
|
scene: e.string()
|
|
1249
|
-
}),
|
|
1257
|
+
}), Hn = s({
|
|
1250
1258
|
params: e.string()
|
|
1251
|
-
}),
|
|
1259
|
+
}), zn = s({
|
|
1252
1260
|
img: e.string()
|
|
1253
1261
|
});
|
|
1254
|
-
class
|
|
1262
|
+
class Gr {
|
|
1255
1263
|
constructor(t, r) {
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1264
|
+
d(this, "token");
|
|
1265
|
+
d(this, "event", 0);
|
|
1266
|
+
d(this, "req");
|
|
1259
1267
|
this.token = t, this.event = +r, this.req = t.req;
|
|
1260
1268
|
}
|
|
1261
1269
|
/**
|
|
@@ -1264,7 +1272,7 @@ class Dr {
|
|
|
1264
1272
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OWGSPF3Ysl
|
|
1265
1273
|
*/
|
|
1266
1274
|
async verifyMobileAllowed(t, r, n) {
|
|
1267
|
-
const { data: i } = await this.req.get("verify-mobile-allowed",
|
|
1275
|
+
const { data: i } = await this.req.get("verify-mobile-allowed", Un, {
|
|
1268
1276
|
...n,
|
|
1269
1277
|
params: { game_id: t, mobile: r }
|
|
1270
1278
|
});
|
|
@@ -1276,7 +1284,7 @@ class Dr {
|
|
|
1276
1284
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=wFXxtdNKPm
|
|
1277
1285
|
*/
|
|
1278
1286
|
async getConfig(t) {
|
|
1279
|
-
const { data: r } = await this.req.get(`event/${this.event}/event-config`,
|
|
1287
|
+
const { data: r } = await this.req.get(`event/${this.event}/event-config`, $n, t);
|
|
1280
1288
|
return r;
|
|
1281
1289
|
}
|
|
1282
1290
|
/**
|
|
@@ -1311,7 +1319,7 @@ class Dr {
|
|
|
1311
1319
|
* https://kdocs.cn/l/ckWFDcOsYEUA?linkname=THtZ4ewIQW
|
|
1312
1320
|
*/
|
|
1313
1321
|
async getEngagements(t, r) {
|
|
1314
|
-
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`,
|
|
1322
|
+
const { data: n } = await this.req.get(`event/${this.event}/feature-engagements`, Dn, {
|
|
1315
1323
|
...r,
|
|
1316
1324
|
params: { feature_id: t }
|
|
1317
1325
|
});
|
|
@@ -1327,7 +1335,7 @@ class Dr {
|
|
|
1327
1335
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1328
1336
|
`event/${this.event}/visit`,
|
|
1329
1337
|
c(t || {}),
|
|
1330
|
-
|
|
1338
|
+
Fn,
|
|
1331
1339
|
r
|
|
1332
1340
|
);
|
|
1333
1341
|
return n ?? {
|
|
@@ -1346,7 +1354,7 @@ class Dr {
|
|
|
1346
1354
|
*/
|
|
1347
1355
|
async getUserFeatureStatus(t, r) {
|
|
1348
1356
|
if (!await this.token.autoLogin()) return [];
|
|
1349
|
-
const { data: n } = await this.req.get("event/user-feature-status",
|
|
1357
|
+
const { data: n } = await this.req.get("event/user-feature-status", In, {
|
|
1350
1358
|
...r,
|
|
1351
1359
|
message: !1,
|
|
1352
1360
|
params: c({ ...t, event_id: this.event })
|
|
@@ -1360,7 +1368,7 @@ class Dr {
|
|
|
1360
1368
|
*/
|
|
1361
1369
|
async getUserEngagementCount(t, r) {
|
|
1362
1370
|
if (!await this.token.autoLogin()) return {};
|
|
1363
|
-
const { data: n } = await this.req.get("event/user-engagements-count",
|
|
1371
|
+
const { data: n } = await this.req.get("event/user-engagements-count", Gn, {
|
|
1364
1372
|
message: !1,
|
|
1365
1373
|
params: c({ ...r, event_id: this.event, feature_id: t })
|
|
1366
1374
|
});
|
|
@@ -1379,7 +1387,7 @@ class Dr {
|
|
|
1379
1387
|
engagements: [],
|
|
1380
1388
|
next_token: ""
|
|
1381
1389
|
};
|
|
1382
|
-
const { data: i } = await this.req.get("event/user-engagements",
|
|
1390
|
+
const { data: i } = await this.req.get("event/user-engagements", An, {
|
|
1383
1391
|
...n,
|
|
1384
1392
|
params: c({
|
|
1385
1393
|
max_results: 20,
|
|
@@ -1404,19 +1412,19 @@ class Dr {
|
|
|
1404
1412
|
*/
|
|
1405
1413
|
async engage(t, r, n, i) {
|
|
1406
1414
|
await this.token.autoLogin();
|
|
1407
|
-
const { data: o, code:
|
|
1415
|
+
const { data: o, code: g, message: m } = await this.req.post(
|
|
1408
1416
|
`event/${this.event}/engage`,
|
|
1409
1417
|
c({
|
|
1410
1418
|
feature_id: t,
|
|
1411
1419
|
engagement: r,
|
|
1412
1420
|
...n
|
|
1413
1421
|
}),
|
|
1414
|
-
|
|
1422
|
+
Nn,
|
|
1415
1423
|
i
|
|
1416
1424
|
);
|
|
1417
1425
|
return o && o.rewards && (o.rewards = o.rewards.map((h) => (h.reward_status = h.reward_status === $.UnclaimedErr ? $.Unclaimed : h.reward_status, h))), o ?? {
|
|
1418
|
-
message:
|
|
1419
|
-
error:
|
|
1426
|
+
message: m,
|
|
1427
|
+
error: g
|
|
1420
1428
|
// 激活码已领完
|
|
1421
1429
|
};
|
|
1422
1430
|
}
|
|
@@ -1435,10 +1443,10 @@ class Dr {
|
|
|
1435
1443
|
...t,
|
|
1436
1444
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1437
1445
|
}),
|
|
1438
|
-
|
|
1446
|
+
On,
|
|
1439
1447
|
r
|
|
1440
|
-
),
|
|
1441
|
-
return
|
|
1448
|
+
), g = n == null ? void 0 : n.claimed_items;
|
|
1449
|
+
return g ? g.map((m) => (m.reward_status = m.reward_status === b.UnclaimedErr ? b.Unclaimed : m.reward_status, m)) : {
|
|
1442
1450
|
message: o,
|
|
1443
1451
|
error: i
|
|
1444
1452
|
};
|
|
@@ -1456,10 +1464,10 @@ class Dr {
|
|
|
1456
1464
|
...t,
|
|
1457
1465
|
server_id: t.server_id ? +t.server_id : void 0
|
|
1458
1466
|
}),
|
|
1459
|
-
|
|
1467
|
+
Bn,
|
|
1460
1468
|
r
|
|
1461
|
-
),
|
|
1462
|
-
return
|
|
1469
|
+
), g = n == null ? void 0 : n.rewards;
|
|
1470
|
+
return g ? g.map((m) => (m.reward_status = m.reward_status === b.UnclaimedErr ? b.Unclaimed : m.reward_status, m)) : {
|
|
1463
1471
|
message: o,
|
|
1464
1472
|
error: i
|
|
1465
1473
|
};
|
|
@@ -1474,7 +1482,7 @@ class Dr {
|
|
|
1474
1482
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1475
1483
|
"event/claim-weixin-hongbao",
|
|
1476
1484
|
{ reward_id: t },
|
|
1477
|
-
|
|
1485
|
+
Mn,
|
|
1478
1486
|
r
|
|
1479
1487
|
);
|
|
1480
1488
|
return n ? (n.reward_status = n.reward_status === b.UnclaimedErr ? b.Unclaimed : n.reward_status, n) : {
|
|
@@ -1515,7 +1523,7 @@ class Dr {
|
|
|
1515
1523
|
const { data: n } = await this.req.post(
|
|
1516
1524
|
"event/user-rewards",
|
|
1517
1525
|
c({ max_results: 20, ...t, event_id: this.event }),
|
|
1518
|
-
|
|
1526
|
+
Qn,
|
|
1519
1527
|
r
|
|
1520
1528
|
);
|
|
1521
1529
|
return {
|
|
@@ -1555,7 +1563,7 @@ class Dr {
|
|
|
1555
1563
|
*/
|
|
1556
1564
|
async getUnlimitQrcodeScene(t, r) {
|
|
1557
1565
|
if (!await this.token.autoLogin()) return null;
|
|
1558
|
-
const { data: n } = await this.req.get("event/unlimit-qrcode-scene",
|
|
1566
|
+
const { data: n } = await this.req.get("event/unlimit-qrcode-scene", Kn, {
|
|
1559
1567
|
...r,
|
|
1560
1568
|
params: { params: t }
|
|
1561
1569
|
});
|
|
@@ -1569,7 +1577,7 @@ class Dr {
|
|
|
1569
1577
|
* @param scene - 小程序码 scene 值
|
|
1570
1578
|
*/
|
|
1571
1579
|
async getParamsByQrcodeScene(t, r) {
|
|
1572
|
-
const { data: n } = await this.req.get("event/params-by-qrcode-scene",
|
|
1580
|
+
const { data: n } = await this.req.get("event/params-by-qrcode-scene", Hn, {
|
|
1573
1581
|
...r,
|
|
1574
1582
|
params: { scene: t }
|
|
1575
1583
|
});
|
|
@@ -1585,18 +1593,18 @@ class Dr {
|
|
|
1585
1593
|
const { data: n } = await this.req.post(
|
|
1586
1594
|
"event/unlimit-qrcode",
|
|
1587
1595
|
c(t),
|
|
1588
|
-
|
|
1596
|
+
zn,
|
|
1589
1597
|
r
|
|
1590
1598
|
);
|
|
1591
1599
|
return (n == null ? void 0 : n.img) ?? null;
|
|
1592
1600
|
}
|
|
1593
1601
|
}
|
|
1594
|
-
const
|
|
1602
|
+
const Jn = {
|
|
1595
1603
|
/** 所有人均可以发帖 */
|
|
1596
1604
|
All: "all",
|
|
1597
1605
|
/** 指定用户可发帖 */
|
|
1598
1606
|
Limit: "limit"
|
|
1599
|
-
},
|
|
1607
|
+
}, Zn = e.string().enum(Jn).lock(), Xn = {
|
|
1600
1608
|
/** 待审核(仅自己可见) */
|
|
1601
1609
|
Pending: "pending",
|
|
1602
1610
|
/** 审核通过 */
|
|
@@ -1605,14 +1613,14 @@ const Hn = {
|
|
|
1605
1613
|
Failed: "failed",
|
|
1606
1614
|
/** 嫌疑(仅自己可见) */
|
|
1607
1615
|
Suspect: "suspect"
|
|
1608
|
-
}, ae = e.string().enum(
|
|
1616
|
+
}, ae = e.string().enum(Xn).lock(), Yn = {
|
|
1609
1617
|
/** 系统通知 */
|
|
1610
1618
|
System: "system",
|
|
1611
1619
|
/** 评论我的 */
|
|
1612
1620
|
Comment: "comment",
|
|
1613
1621
|
/** 点赞通知 */
|
|
1614
1622
|
Like: "like"
|
|
1615
|
-
},
|
|
1623
|
+
}, Ar = e.string().enum(Yn).lock(), p = {
|
|
1616
1624
|
/** 系统通知 */
|
|
1617
1625
|
System: "system",
|
|
1618
1626
|
/** 帖子被置顶 */
|
|
@@ -1637,13 +1645,13 @@ const Hn = {
|
|
|
1637
1645
|
ReplyLiked: "reply_liked",
|
|
1638
1646
|
/** 回复被删除 */
|
|
1639
1647
|
ReplyDeleted: "reply_deleted"
|
|
1640
|
-
},
|
|
1648
|
+
}, Wn = e.string().enum(p).lock(), se = e.object({
|
|
1641
1649
|
forum_id: e.number(),
|
|
1642
1650
|
icon_url: e.string(),
|
|
1643
1651
|
name: e.string(),
|
|
1644
1652
|
tags: e.array(e.string()),
|
|
1645
1653
|
sort: e.number(),
|
|
1646
|
-
mode:
|
|
1654
|
+
mode: Zn,
|
|
1647
1655
|
member_ids: e.array(e.number())
|
|
1648
1656
|
}).lock(), A = e.object({
|
|
1649
1657
|
topic_id: e.number(),
|
|
@@ -1674,7 +1682,7 @@ const Hn = {
|
|
|
1674
1682
|
create_time: e.number()
|
|
1675
1683
|
}).lock(), ce = e.object({
|
|
1676
1684
|
err_msg: e.string().optional()
|
|
1677
|
-
}).lock(),
|
|
1685
|
+
}).lock(), er = e.object({
|
|
1678
1686
|
reply_id: e.number(),
|
|
1679
1687
|
reply_content: e.string().optional(),
|
|
1680
1688
|
replied_by: e.string(),
|
|
@@ -1693,7 +1701,7 @@ const Hn = {
|
|
|
1693
1701
|
content: e.string(),
|
|
1694
1702
|
like_num: e.number(),
|
|
1695
1703
|
liked: e.bool(),
|
|
1696
|
-
reply_to:
|
|
1704
|
+
reply_to: er,
|
|
1697
1705
|
create_time: e.number()
|
|
1698
1706
|
}).lock(), C = e.object({
|
|
1699
1707
|
comment_id: e.number(),
|
|
@@ -1715,19 +1723,19 @@ const Hn = {
|
|
|
1715
1723
|
create_time: e.number(),
|
|
1716
1724
|
status: ae,
|
|
1717
1725
|
replies: e.array(T).optional()
|
|
1718
|
-
}).lock(),
|
|
1726
|
+
}).lock(), tr = e.object({
|
|
1719
1727
|
image_url: e.string(),
|
|
1720
1728
|
upload_url: e.string(),
|
|
1721
1729
|
existed: e.bool()
|
|
1722
1730
|
}).lock(), f = e.object({
|
|
1723
1731
|
notification_id: e.string(),
|
|
1724
|
-
notification_type:
|
|
1732
|
+
notification_type: Wn,
|
|
1725
1733
|
is_read: e.bool(),
|
|
1726
1734
|
create_time: e.number(),
|
|
1727
1735
|
origin_user_id: e.string(),
|
|
1728
1736
|
origin_user_name: e.string(),
|
|
1729
1737
|
origin_user_avatar_url: e.string()
|
|
1730
|
-
}).lock(),
|
|
1738
|
+
}).lock(), nr = e.object({
|
|
1731
1739
|
system_message_subject: e.string(),
|
|
1732
1740
|
system_message_content: e.string()
|
|
1733
1741
|
}).lock(), O = e.object({
|
|
@@ -1741,11 +1749,11 @@ const Hn = {
|
|
|
1741
1749
|
}).lock(), B = e.object({
|
|
1742
1750
|
reply_id: e.number(),
|
|
1743
1751
|
reply_content: e.string()
|
|
1744
|
-
}).lock(),
|
|
1752
|
+
}).lock(), rr = e.object({
|
|
1745
1753
|
...f.shape,
|
|
1746
|
-
...
|
|
1754
|
+
...nr.shape,
|
|
1747
1755
|
notification_type: e.string().enum(p.System)
|
|
1748
|
-
}),
|
|
1756
|
+
}), ir = e.object({
|
|
1749
1757
|
...f.shape,
|
|
1750
1758
|
...O.shape,
|
|
1751
1759
|
notification_type: e.string().enum(
|
|
@@ -1754,68 +1762,68 @@ const Hn = {
|
|
|
1754
1762
|
p.PostDeleted,
|
|
1755
1763
|
p.PostLiked
|
|
1756
1764
|
)
|
|
1757
|
-
}),
|
|
1765
|
+
}), or = e.object({
|
|
1758
1766
|
...f.shape,
|
|
1759
1767
|
...O.shape,
|
|
1760
1768
|
...q.shape,
|
|
1761
1769
|
notification_type: e.string().enum(p.PostCommented)
|
|
1762
|
-
}),
|
|
1770
|
+
}), ar = e.object({
|
|
1763
1771
|
...f.shape,
|
|
1764
1772
|
...q.shape,
|
|
1765
1773
|
...B.shape,
|
|
1766
1774
|
notification_type: e.string().enum(p.CommentReplied)
|
|
1767
|
-
}),
|
|
1775
|
+
}), sr = e.object({
|
|
1768
1776
|
...f.shape,
|
|
1769
1777
|
...q.shape,
|
|
1770
1778
|
...O.shape,
|
|
1771
1779
|
notification_type: e.string().enum(p.CommentLiked, p.CommentDeleted)
|
|
1772
|
-
}),
|
|
1780
|
+
}), cr = e.object({
|
|
1773
1781
|
...f.shape,
|
|
1774
1782
|
...B.shape,
|
|
1775
1783
|
notification_type: e.string().enum(p.ReplyReplied),
|
|
1776
1784
|
comment_id: e.number(),
|
|
1777
1785
|
reply_to_reply_id: e.number(),
|
|
1778
1786
|
reply_to_reply_content: e.string()
|
|
1779
|
-
}),
|
|
1787
|
+
}), ur = e.object({
|
|
1780
1788
|
...f.shape,
|
|
1781
1789
|
...B.shape,
|
|
1782
1790
|
...q.shape,
|
|
1783
1791
|
notification_type: e.string().enum(p.ReplyLiked, p.ReplyDeleted)
|
|
1784
|
-
}),
|
|
1785
|
-
tr,
|
|
1786
|
-
nr,
|
|
1792
|
+
}), lr = e.union(
|
|
1787
1793
|
rr,
|
|
1788
1794
|
ir,
|
|
1789
1795
|
or,
|
|
1790
1796
|
ar,
|
|
1791
|
-
sr
|
|
1792
|
-
|
|
1797
|
+
sr,
|
|
1798
|
+
cr,
|
|
1799
|
+
ur
|
|
1800
|
+
).satisfies().lock(), mr = s({ forums: e.array(se) }), dr = s({ topics: e.array(A) }), gr = s({ topic: A }), pr = s({ post: N }), J = s({
|
|
1793
1801
|
posts: e.array(N),
|
|
1794
1802
|
next_token: e.string().optional()
|
|
1795
|
-
}),
|
|
1803
|
+
}), _r = s({ post: N, antispam: ce }), br = s({
|
|
1796
1804
|
replies: e.array(T),
|
|
1797
1805
|
next_token: e.string().optional()
|
|
1798
|
-
}),
|
|
1806
|
+
}), yr = s({ reply: T }), fr = s({
|
|
1799
1807
|
reply: T.clone().optional(),
|
|
1800
1808
|
antispam: ce.clone().optional()
|
|
1801
|
-
}),
|
|
1809
|
+
}), hr = s({ comment: C }), wr = s({
|
|
1802
1810
|
comments: e.array(C),
|
|
1803
1811
|
next_token: e.string().optional()
|
|
1804
|
-
}),
|
|
1812
|
+
}), kr = s({
|
|
1805
1813
|
comment: C.clone().optional(),
|
|
1806
1814
|
antispam: C.clone().optional()
|
|
1807
|
-
}),
|
|
1808
|
-
notifications: e.array(
|
|
1815
|
+
}), vr = e.guard(tr), Cr = s({
|
|
1816
|
+
notifications: e.array(lr),
|
|
1809
1817
|
next_token: e.string().optional()
|
|
1810
|
-
}),
|
|
1818
|
+
}), Vr = s({
|
|
1811
1819
|
system: e.number(),
|
|
1812
1820
|
comment: e.number(),
|
|
1813
1821
|
like: e.number()
|
|
1814
1822
|
});
|
|
1815
|
-
class
|
|
1823
|
+
class Nr {
|
|
1816
1824
|
constructor(t) {
|
|
1817
|
-
|
|
1818
|
-
|
|
1825
|
+
d(this, "token");
|
|
1826
|
+
d(this, "req");
|
|
1819
1827
|
this.token = t, this.req = t.req;
|
|
1820
1828
|
}
|
|
1821
1829
|
/**
|
|
@@ -1824,7 +1832,7 @@ class Gr {
|
|
|
1824
1832
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=QaqUa2K0z0
|
|
1825
1833
|
*/
|
|
1826
1834
|
async getForums(t) {
|
|
1827
|
-
const { data: r } = await this.req.get("community/forums",
|
|
1835
|
+
const { data: r } = await this.req.get("community/forums", mr, t);
|
|
1828
1836
|
return (r == null ? void 0 : r.forums) || [];
|
|
1829
1837
|
}
|
|
1830
1838
|
/**
|
|
@@ -1833,7 +1841,7 @@ class Gr {
|
|
|
1833
1841
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=mIwpymAQom
|
|
1834
1842
|
*/
|
|
1835
1843
|
async getTopics(t) {
|
|
1836
|
-
const { data: r } = await this.req.get("community/topics",
|
|
1844
|
+
const { data: r } = await this.req.get("community/topics", dr, t);
|
|
1837
1845
|
return (r == null ? void 0 : r.topics) || [];
|
|
1838
1846
|
}
|
|
1839
1847
|
/**
|
|
@@ -1842,7 +1850,7 @@ class Gr {
|
|
|
1842
1850
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=Jvw7xMK31K
|
|
1843
1851
|
*/
|
|
1844
1852
|
async getTopic(t, r) {
|
|
1845
|
-
const { data: n, code: i } = await this.req.get("community/topic",
|
|
1853
|
+
const { data: n, code: i } = await this.req.get("community/topic", gr, {
|
|
1846
1854
|
...r,
|
|
1847
1855
|
params: { topic_id: t }
|
|
1848
1856
|
});
|
|
@@ -1869,13 +1877,13 @@ class Gr {
|
|
|
1869
1877
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=yXubbZuDlC
|
|
1870
1878
|
*/
|
|
1871
1879
|
async getPinnedPosts(t, r, n, i) {
|
|
1872
|
-
const { data: o, code:
|
|
1880
|
+
const { data: o, code: g, message: m } = await this.req.get("community/pinned-posts", J, {
|
|
1873
1881
|
...i,
|
|
1874
1882
|
params: c({ forum_id: t, max_results: r, next_token: n })
|
|
1875
1883
|
});
|
|
1876
1884
|
return o ?? {
|
|
1877
|
-
message:
|
|
1878
|
-
error:
|
|
1885
|
+
message: m,
|
|
1886
|
+
error: g
|
|
1879
1887
|
};
|
|
1880
1888
|
}
|
|
1881
1889
|
/**
|
|
@@ -1884,7 +1892,7 @@ class Gr {
|
|
|
1884
1892
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=hj1AZy5rcP
|
|
1885
1893
|
*/
|
|
1886
1894
|
async getPost(t, r) {
|
|
1887
|
-
const { data: n, code: i, message: o } = await this.req.get("community/post",
|
|
1895
|
+
const { data: n, code: i, message: o } = await this.req.get("community/post", pr, {
|
|
1888
1896
|
...r,
|
|
1889
1897
|
params: { post_id: t }
|
|
1890
1898
|
});
|
|
@@ -1902,7 +1910,7 @@ class Gr {
|
|
|
1902
1910
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1903
1911
|
"community/post",
|
|
1904
1912
|
c(t),
|
|
1905
|
-
|
|
1913
|
+
_r,
|
|
1906
1914
|
r
|
|
1907
1915
|
);
|
|
1908
1916
|
return n ?? {
|
|
@@ -1916,7 +1924,7 @@ class Gr {
|
|
|
1916
1924
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=djKbX7lFdp
|
|
1917
1925
|
*/
|
|
1918
1926
|
async getComments(t, r) {
|
|
1919
|
-
const { data: n, code: i, message: o } = await this.req.get("community/comments",
|
|
1927
|
+
const { data: n, code: i, message: o } = await this.req.get("community/comments", wr, {
|
|
1920
1928
|
...r,
|
|
1921
1929
|
params: c(t)
|
|
1922
1930
|
});
|
|
@@ -1931,7 +1939,7 @@ class Gr {
|
|
|
1931
1939
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=RIc7oxVGae
|
|
1932
1940
|
*/
|
|
1933
1941
|
async getComment(t, r) {
|
|
1934
|
-
const { data: n, code: i, message: o } = await this.req.get("community/comment",
|
|
1942
|
+
const { data: n, code: i, message: o } = await this.req.get("community/comment", hr, {
|
|
1935
1943
|
...r,
|
|
1936
1944
|
params: { comment_id: t }
|
|
1937
1945
|
});
|
|
@@ -1950,7 +1958,7 @@ class Gr {
|
|
|
1950
1958
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1951
1959
|
"community/comment",
|
|
1952
1960
|
c(t),
|
|
1953
|
-
|
|
1961
|
+
kr,
|
|
1954
1962
|
r
|
|
1955
1963
|
);
|
|
1956
1964
|
return n ?? {
|
|
@@ -1964,7 +1972,7 @@ class Gr {
|
|
|
1964
1972
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=sVKBbY83MY
|
|
1965
1973
|
*/
|
|
1966
1974
|
async getReplies(t, r) {
|
|
1967
|
-
const { data: n } = await this.req.get("community/replies",
|
|
1975
|
+
const { data: n } = await this.req.get("community/replies", br, {
|
|
1968
1976
|
...r,
|
|
1969
1977
|
params: c({ max_results: 20, ...t })
|
|
1970
1978
|
});
|
|
@@ -1979,7 +1987,7 @@ class Gr {
|
|
|
1979
1987
|
* https://kdocs.cn/l/cbggfJodHLIz?linkname=kxhcSXD3MG
|
|
1980
1988
|
*/
|
|
1981
1989
|
async getReply(t, r) {
|
|
1982
|
-
const { data: n, code: i, message: o } = await this.req.get("community/reply",
|
|
1990
|
+
const { data: n, code: i, message: o } = await this.req.get("community/reply", yr, {
|
|
1983
1991
|
...r,
|
|
1984
1992
|
params: { reply_id: t }
|
|
1985
1993
|
});
|
|
@@ -1998,7 +2006,7 @@ class Gr {
|
|
|
1998
2006
|
const { data: n, code: i, message: o } = await this.req.post(
|
|
1999
2007
|
"community/reply",
|
|
2000
2008
|
c(t),
|
|
2001
|
-
|
|
2009
|
+
fr,
|
|
2002
2010
|
r
|
|
2003
2011
|
);
|
|
2004
2012
|
return n ?? {
|
|
@@ -2049,7 +2057,7 @@ class Gr {
|
|
|
2049
2057
|
*/
|
|
2050
2058
|
async getMediaPresignedUrl(t, r) {
|
|
2051
2059
|
await this.token.autoLogin();
|
|
2052
|
-
const { data: n } = await this.req.get("community/media-presign-url",
|
|
2060
|
+
const { data: n } = await this.req.get("community/media-presign-url", vr, {
|
|
2053
2061
|
...r,
|
|
2054
2062
|
params: t
|
|
2055
2063
|
});
|
|
@@ -2064,7 +2072,7 @@ class Gr {
|
|
|
2064
2072
|
*/
|
|
2065
2073
|
async getNotifications(t, r) {
|
|
2066
2074
|
await this.token.autoLogin();
|
|
2067
|
-
const { data: n } = await this.req.get("community/notifications",
|
|
2075
|
+
const { data: n } = await this.req.get("community/notifications", Cr, {
|
|
2068
2076
|
...r,
|
|
2069
2077
|
params: c({ max_results: 20, ...t })
|
|
2070
2078
|
});
|
|
@@ -2082,7 +2090,7 @@ class Gr {
|
|
|
2082
2090
|
if (!await this.token.autoLogin()) return null;
|
|
2083
2091
|
const { data: r } = await this.req.get(
|
|
2084
2092
|
"community/unread-notifications-count",
|
|
2085
|
-
|
|
2093
|
+
Vr,
|
|
2086
2094
|
t
|
|
2087
2095
|
);
|
|
2088
2096
|
return r;
|
|
@@ -2098,17 +2106,17 @@ class Gr {
|
|
|
2098
2106
|
return n;
|
|
2099
2107
|
}
|
|
2100
2108
|
}
|
|
2101
|
-
const
|
|
2109
|
+
const Rr = s({
|
|
2102
2110
|
nonce_str: e.string(),
|
|
2103
2111
|
timestamp: e.number(),
|
|
2104
2112
|
signature: e.string()
|
|
2105
2113
|
});
|
|
2106
|
-
var
|
|
2114
|
+
var jr = /* @__PURE__ */ ((a) => (a.RedirectUriDisMatch = "10003", a.AppidError = "10016", a.AuthorizationError = "10015", a.NoRightForScope = "10005", a.Frequently = "10009", a.AppBanded = "10004", a.ShouldFollow = "10006", a.ScopeNull = "10010", a.RedirectUriNull = "10011", a.AppidNull = "10012", a.StateNull = "10013", a))(jr || {});
|
|
2107
2115
|
function E(a) {
|
|
2108
|
-
return
|
|
2116
|
+
return V(a, "open_id", "union_id", "weixin_token");
|
|
2109
2117
|
}
|
|
2110
2118
|
const Z = "wx_login_cache";
|
|
2111
|
-
class
|
|
2119
|
+
class Or {
|
|
2112
2120
|
/**
|
|
2113
2121
|
* 创建微信相关功能接口
|
|
2114
2122
|
*
|
|
@@ -2123,9 +2131,9 @@ class Ar {
|
|
|
2123
2131
|
* https://developers.weixin.qq.com/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.html
|
|
2124
2132
|
*/
|
|
2125
2133
|
constructor(t, r) {
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2134
|
+
d(this, "token");
|
|
2135
|
+
d(this, "$appid");
|
|
2136
|
+
d(this, "req");
|
|
2129
2137
|
this.token = t, this.req = t.req, this.$appid = r, this.getLoginCache();
|
|
2130
2138
|
}
|
|
2131
2139
|
get appid() {
|
|
@@ -2168,14 +2176,14 @@ class Ar {
|
|
|
2168
2176
|
const r = await this.getLoginCache();
|
|
2169
2177
|
if (r)
|
|
2170
2178
|
return r;
|
|
2171
|
-
const n = await we(), { data: i, code: o, message:
|
|
2179
|
+
const n = await we(), { data: i, code: o, message: g } = await this.req.post(
|
|
2172
2180
|
"weixin/login",
|
|
2173
2181
|
{ code: n, appid: this.appid },
|
|
2174
2182
|
E,
|
|
2175
2183
|
{ ...t, message: !1 }
|
|
2176
2184
|
);
|
|
2177
2185
|
return i && (this.token.weixinToken = i.weixin_token, this.token.storage.set(Z, JSON.stringify(i)), await this.token.autoLogin()), i ?? {
|
|
2178
|
-
message:
|
|
2186
|
+
message: g,
|
|
2179
2187
|
error: o
|
|
2180
2188
|
};
|
|
2181
2189
|
}
|
|
@@ -2209,14 +2217,14 @@ class Ar {
|
|
|
2209
2217
|
message: "Error: " + n,
|
|
2210
2218
|
error: n
|
|
2211
2219
|
};
|
|
2212
|
-
const
|
|
2213
|
-
"replaceState" in history && history.replaceState({}, "",
|
|
2220
|
+
const g = M(["code", "state"]);
|
|
2221
|
+
"replaceState" in history && history.replaceState({}, "", g);
|
|
2214
2222
|
const {
|
|
2215
|
-
data:
|
|
2223
|
+
data: m,
|
|
2216
2224
|
code: h,
|
|
2217
2225
|
message: ue
|
|
2218
2226
|
} = await this.req.post("weixin/login", { code: n, appid: this.appid }, E, r);
|
|
2219
|
-
return
|
|
2227
|
+
return m && (this.token.weixinToken = m.weixin_token, await this.token.autoLogin()), m ?? {
|
|
2220
2228
|
message: ue,
|
|
2221
2229
|
error: h
|
|
2222
2230
|
};
|
|
@@ -2248,7 +2256,7 @@ class Ar {
|
|
|
2248
2256
|
* https://kdocs.cn/l/cf2mO2uRLqh9?linkname=CuWOqxr9Ue
|
|
2249
2257
|
*/
|
|
2250
2258
|
async getJSSDKConfig(t) {
|
|
2251
|
-
const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign",
|
|
2259
|
+
const { data: r } = await this.req.get("weixin/offiaccount/jssdk-sign", Rr, {
|
|
2252
2260
|
...t,
|
|
2253
2261
|
params: {
|
|
2254
2262
|
appid: this.appid,
|
|
@@ -2265,19 +2273,19 @@ class Ar {
|
|
|
2265
2273
|
}
|
|
2266
2274
|
export {
|
|
2267
2275
|
ce as AntispamValidator,
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2276
|
+
Sr as AuthToken,
|
|
2277
|
+
cn as CashbackEngagementDataValidator,
|
|
2278
|
+
un as ClaimActivationKeyEngagementDataValidator,
|
|
2271
2279
|
b as ClaimRewardStatus,
|
|
2272
2280
|
U as ClaimRewardStatusValidator,
|
|
2273
|
-
|
|
2281
|
+
Pn as ClaimedItemValidator,
|
|
2274
2282
|
W as ClubAddressValidator,
|
|
2275
|
-
|
|
2283
|
+
Er as ClubApi,
|
|
2276
2284
|
ee as ClubBenefitSummaryValidator,
|
|
2277
2285
|
Ae as ClubBenefitValidator,
|
|
2278
2286
|
Te as ClubCreditChangeScene,
|
|
2279
2287
|
qe as ClubCreditChangeSceneValidator,
|
|
2280
|
-
|
|
2288
|
+
Re as ClubCreditChangeType,
|
|
2281
2289
|
je as ClubCreditChangeTypeValidator,
|
|
2282
2290
|
Ge as ClubCreditLogValidator,
|
|
2283
2291
|
Ee as ClubGlobalConfigValidator,
|
|
@@ -2289,20 +2297,20 @@ export {
|
|
|
2289
2297
|
Le as ClubRedemptionStatusValidator,
|
|
2290
2298
|
Ie as ClubUserCreditValidator,
|
|
2291
2299
|
De as ClubUserProfileValidator,
|
|
2292
|
-
|
|
2300
|
+
jn as CommentEngagementValidator,
|
|
2293
2301
|
C as CommentValidator,
|
|
2294
|
-
|
|
2302
|
+
Nr as CommunityApi,
|
|
2295
2303
|
We as EngageAccountType,
|
|
2296
2304
|
et as EngageAccountTypeValidator,
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2305
|
+
En as EngageResponseValidator,
|
|
2306
|
+
qn as EngageRewardValidator,
|
|
2307
|
+
Gr as EventApi,
|
|
2308
|
+
sn as EventConfigValidator,
|
|
2301
2309
|
bt as EventFeatureConfigOfCashbackValidator,
|
|
2302
2310
|
ft as EventFeatureConfigOfCheckInValidator,
|
|
2303
2311
|
wt as EventFeatureConfigOfClaimActivationKeyValidator,
|
|
2304
2312
|
vt as EventFeatureConfigOfClaimRewardsValidator,
|
|
2305
|
-
|
|
2313
|
+
Vt as EventFeatureConfigOfCommentValidator,
|
|
2306
2314
|
jt as EventFeatureConfigOfFollowValidator,
|
|
2307
2315
|
xt as EventFeatureConfigOfGiftCodeValidator,
|
|
2308
2316
|
Lt as EventFeatureConfigOfInviteValidator,
|
|
@@ -2317,7 +2325,7 @@ export {
|
|
|
2317
2325
|
Xt as EventFeatureConfigOfSurveyValidator,
|
|
2318
2326
|
Wt as EventFeatureConfigOfTeamValidator,
|
|
2319
2327
|
nn as EventFeatureConfigOfVoteValidator,
|
|
2320
|
-
|
|
2328
|
+
an as EventFeatureConfigValidator,
|
|
2321
2329
|
tt as EventPeriodType,
|
|
2322
2330
|
nt as EventPeriodTypeValidator,
|
|
2323
2331
|
D as EventRewardItemConfigValidator,
|
|
@@ -2326,84 +2334,84 @@ export {
|
|
|
2326
2334
|
pt as FeatureRewardValidator,
|
|
2327
2335
|
u as FeatureType,
|
|
2328
2336
|
rt as FeatureTypeValidator,
|
|
2329
|
-
|
|
2330
|
-
|
|
2337
|
+
Jn as ForumMode,
|
|
2338
|
+
Zn as ForumModeValidator,
|
|
2331
2339
|
se as ForumValidator,
|
|
2332
2340
|
j as GamerItemType,
|
|
2333
2341
|
ne as GamerItemTypeValidator,
|
|
2334
2342
|
Ce as Gender,
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2343
|
+
Ve as GenderValidator,
|
|
2344
|
+
ln as GiftCodeEngagementDataValidator,
|
|
2345
|
+
mn as InviteEngagementDataValidator,
|
|
2338
2346
|
mt as LotteryDrawAction,
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2347
|
+
Dr as LotteryDrawActionValidator,
|
|
2348
|
+
_n as LotteryDrawEngagementDataValidator,
|
|
2349
|
+
dn as LotteryEngagementDataValidator,
|
|
2342
2350
|
v as LotteryTicketStatus,
|
|
2343
|
-
|
|
2351
|
+
Ur as LotteryTicketStatusValidator,
|
|
2344
2352
|
f as NotificationBaseValidator,
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2353
|
+
Yn as NotificationCategory,
|
|
2354
|
+
Ar as NotificationCategoryValidator,
|
|
2355
|
+
ar as NotificationCommentReplyValidator,
|
|
2356
|
+
sr as NotificationCommentValidator,
|
|
2349
2357
|
q as NotificationPayloadCommentValidator,
|
|
2350
2358
|
O as NotificationPayloadPostValidator,
|
|
2351
2359
|
B as NotificationPayloadReplyValidator,
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2360
|
+
nr as NotificationPayloadSystemValidator,
|
|
2361
|
+
or as NotificationPostCommentValidator,
|
|
2362
|
+
ir as NotificationPostValidator,
|
|
2363
|
+
cr as NotificationReplyRepliedValidator,
|
|
2364
|
+
ur as NotificationReplyValidator,
|
|
2365
|
+
rr as NotificationSystemValidator,
|
|
2358
2366
|
p as NotificationType,
|
|
2359
|
-
|
|
2360
|
-
|
|
2367
|
+
Wn as NotificationTypeValidator,
|
|
2368
|
+
lr as NotificationValidator,
|
|
2361
2369
|
Fe as PlayerRoleCardValidator,
|
|
2362
2370
|
Y as PlayerRoleValidator,
|
|
2363
|
-
|
|
2371
|
+
Xn as PostStatus,
|
|
2364
2372
|
ae as PostStatusValidator,
|
|
2365
2373
|
N as PostValidator,
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2374
|
+
bn as PreregisterEngagementDataValidator,
|
|
2375
|
+
tr as PresignedUrlResponseValidator,
|
|
2376
|
+
yn as QuestEngagementDataValidator,
|
|
2369
2377
|
it as QuestObjective,
|
|
2370
2378
|
ie as QuestObjectiveValidator,
|
|
2371
|
-
|
|
2379
|
+
Lr as RedeemParamsValidator,
|
|
2372
2380
|
Be as RedemptionValidator,
|
|
2373
2381
|
gt as RegularRewardValidator,
|
|
2374
|
-
|
|
2382
|
+
er as ReplyToValidator,
|
|
2375
2383
|
T as ReplyValidator,
|
|
2376
|
-
|
|
2384
|
+
Pr as RewardItemType,
|
|
2377
2385
|
re as RewardItemTypeValidator,
|
|
2378
2386
|
st as RewardSource,
|
|
2379
2387
|
F as RewardSourceValidator,
|
|
2380
2388
|
_ as RewardStatus,
|
|
2381
2389
|
$ as RewardStatusSuffix,
|
|
2382
2390
|
oe as RewardStatusSuffixValidator,
|
|
2383
|
-
|
|
2384
|
-
|
|
2391
|
+
$r as RewardStatusValidator,
|
|
2392
|
+
Tn as RewardValidator,
|
|
2385
2393
|
Ue as RoleBaseInfoValidator,
|
|
2386
2394
|
$e as ServerBaseInfoValidator,
|
|
2387
|
-
|
|
2388
|
-
|
|
2395
|
+
fn as ShareEngagementDataValidator,
|
|
2396
|
+
wn as SurveyEngagementDataValidator,
|
|
2389
2397
|
lt as TeamAction,
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2398
|
+
Fr as TeamActionValidator,
|
|
2399
|
+
vn as TeamEngagementDataValidator,
|
|
2400
|
+
kn as TeamEngagementValidator,
|
|
2401
|
+
Ir as TeamMemberValidator,
|
|
2394
2402
|
ct as TeamVisibility,
|
|
2395
2403
|
ut as TeamVisibilityValidator,
|
|
2396
2404
|
A as TopicValidator,
|
|
2397
2405
|
G as UserEngagementDataValidator,
|
|
2398
|
-
|
|
2399
|
-
|
|
2406
|
+
xn as UserEngagementValidator,
|
|
2407
|
+
Ln as UserFeatureStatusValidator,
|
|
2400
2408
|
I as UserRewardValidator,
|
|
2401
|
-
|
|
2402
|
-
|
|
2409
|
+
Sn as VerifyMobileResultValidator,
|
|
2410
|
+
Cn as VoteEngagementDataValidator,
|
|
2403
2411
|
ot as VoteOptionSource,
|
|
2404
2412
|
at as VoteOptionSourceValidator,
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2413
|
+
Or as WeixinApi,
|
|
2414
|
+
hn as WeixinSubscribeEngagementDataValidator,
|
|
2415
|
+
jr as WeixinWebLoginErrorCode,
|
|
2416
|
+
Rr as isWeixinSignResponse
|
|
2409
2417
|
};
|