战力:修复战力

This commit is contained in:
luying
2021-08-13 19:34:08 +08:00
parent dadd548ffd
commit 6444f91c61
5 changed files with 52 additions and 43 deletions

View File

@@ -22,7 +22,8 @@ interface calPlayerReturn {
guild?: GuildType;
hero?: HeroType;
pushHeros: {hid: number, ce: number, incHeroCe: number}[];
topLineupCe: number
topLineupCe: number;
heros?: HeroType[]
}
//修改并下发战力
@@ -53,7 +54,7 @@ export async function calAllHeroCe(type:number, sid: string, roleId: string, upd
if(result.pushHeros.length > 0) {
return await pushCalAllHeroCe(roleId, sid, result);
} else {
return result.role;
return result;
}
}
@@ -68,7 +69,7 @@ export async function pushCalAllHeroCe(roleId: string, sid: string, calResult: c
}
updateRank(roleId, serverId, topLineupCe, role, pushHeros);
return role;
return calResult;
}