From 8d57971f14508c925db2c5c07abc58235173695c Mon Sep 17 00:00:00 2001 From: "ZM.J" Date: Wed, 3 Jul 2024 23:35:59 +0800 Subject: [PATCH] Add need_detail parameter --- apps/stat/RoleCombatSummary.js | 2 +- models/MysApi.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/stat/RoleCombatSummary.js b/apps/stat/RoleCombatSummary.js index ca6c5057..da49fcc5 100644 --- a/apps/stat/RoleCombatSummary.js +++ b/apps/stat/RoleCombatSummary.js @@ -20,7 +20,7 @@ export async function RoleCombatSummary (e) { let player = Player.create(e) let resDetail, resRole try { - resRole = await mys.getRoleCombat() + resRole = await mys.getRoleCombat(true) let lvs = Data.getVal(resRole, 'data.0') // 检查是否查询到了幻想真境剧诗信息 if (!lvs || !lvs.has_data) { diff --git a/models/MysApi.js b/models/MysApi.js index 62e088a0..6b72b6a1 100644 --- a/models/MysApi.js +++ b/models/MysApi.js @@ -146,8 +146,8 @@ export default class MysApi { } // 获取幻想真境剧诗信息 - async getRoleCombat () { - return await this.getData('role_combat') + async getRoleCombat (need_detail = false) { + return await this.getData('role_combat', { need_detail: need_detail }) } async getDetail (id) {