Untitled
unknown
plain_text
10 months ago
1.6 kB
4
Indexable
try {
fetchMatchHistory({
team_id: a.matchDetail[`${x}Team`].id,
page: y[`${x}Page`],
lang: o()
}).then(P => {
var m;
try {
if (P) {
const V = ProtoService.decode(ProtoService.ApiResult, P)
, B = JSON.parse(JSON.stringify(ProtoService.ApiHistory.toObject(ProtoService.decode(ProtoService.ApiHistory, V.data), {
defaults: !0
})));
if (C("Api-----getMatchHistory-----", x, JSON.parse(JSON.stringify(B))),
V.code == 0)
((m = B == null ? void 0 : B.matches) == null ? void 0 : m.length) < 10 && (y[`${x}IsLast`] = !0),
y[`${x}List`] = y[`${x}List`].concat((B == null ? void 0 : B.matches) || []),
C("h2h", x, y[`${x}List`]);
else
throw "请求错误"
}
} catch (V) {
throw V
}
}
).catch(P => {
throw P
}
)
} catch (P) {
C("Api-----getMatchHistory 失败: ", P)
}
function fetchMatchHistory({team_id: e, page: a=1, lang: o}) {
return HttpService.get("/api/v3/f/t/h", {
team_id: e,
page: a,
lang: o
})
}Editor is loading...
Leave a Comment