调整卡组返回数据顺序
This commit is contained in:
parent
c7de189d6b
commit
f349f827f0
@ -23,10 +23,6 @@ export default class CardController extends BaseController {
|
||||
}
|
||||
let records = await CardGroup.find(query)
|
||||
let result: any = []
|
||||
for (let record of records) {
|
||||
let data: any = record.toJson()
|
||||
result.push(data)
|
||||
}
|
||||
if (heroid) {
|
||||
result.push(getDefaultCardGroupByHero(heroid))
|
||||
} else {
|
||||
@ -35,6 +31,10 @@ export default class CardController extends BaseController {
|
||||
result.push(getDefaultCardGroupByHero(hero.heroid))
|
||||
}
|
||||
}
|
||||
for (let record of records) {
|
||||
let data: any = record.toJson()
|
||||
result.push(data)
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user