Add need_detail parameter

This commit is contained in:
ZM.J 2024-07-03 23:35:59 +08:00
parent 0c1ce64101
commit 8d57971f14
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {