排行榜:防报错

This commit is contained in:
luying
2022-09-09 20:39:17 +08:00
parent 7b8b110045
commit cb1384b24f
2 changed files with 8 additions and 1 deletions
@@ -105,6 +105,7 @@ export function getDungeonBuyCountCost(num:number) {
}
export async function saveDungeonFirst(role: RoleType, warId: number, battleRecord: BattleRecordType) {
if(!role) return null;
let userInfo = new RankParam(role);
let lineup = battleRecord.record.lineup;
let dicWar = gameData.war.get(warId);