Untitled
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) }
Leave a Comment