mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +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 player = Player.create(e)
|
||||||
let resDetail, resRole
|
let resDetail, resRole
|
||||||
try {
|
try {
|
||||||
resRole = await mys.getRoleCombat()
|
resRole = await mys.getRoleCombat(true)
|
||||||
let lvs = Data.getVal(resRole, 'data.0')
|
let lvs = Data.getVal(resRole, 'data.0')
|
||||||
// 检查是否查询到了幻想真境剧诗信息
|
// 检查是否查询到了幻想真境剧诗信息
|
||||||
if (!lvs || !lvs.has_data) {
|
if (!lvs || !lvs.has_data) {
|
||||||
|
@ -146,8 +146,8 @@ export default class MysApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取幻想真境剧诗信息
|
// 获取幻想真境剧诗信息
|
||||||
async getRoleCombat () {
|
async getRoleCombat (need_detail = false) {
|
||||||
return await this.getData('role_combat')
|
return await this.getData('role_combat', { need_detail: need_detail })
|
||||||
}
|
}
|
||||||
|
|
||||||
async getDetail (id) {
|
async getDetail (id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user