任务:完成主要接口

This commit is contained in:
luying
2021-04-20 17:52:50 +08:00
parent b29b8634ad
commit ced80d9b94
16 changed files with 515 additions and 41 deletions
@@ -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 };