mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
Add need_detail parameter
This commit is contained in:
parent
0c1ce64101
commit
8d57971f14
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user