任务:完成主要接口
This commit is contained in:
@@ -65,7 +65,9 @@ export async function checkBattleHeroes(roleId: string, seqIds: Array<number>) {
|
||||
if(findHeroes.length != seqIds.length) flag = false;
|
||||
for(let seqId of seqIds) {
|
||||
let hero = findHeroes.find(cur => cur.seqId == seqId);
|
||||
if(!hero) flag = false;
|
||||
if(!hero) {
|
||||
flag = false; break;
|
||||
}
|
||||
heroes.push(hero.hid);
|
||||
}
|
||||
return { isOK: flag, heroes };
|
||||
|
||||
Reference in New Issue
Block a user