远征:修复初始没有roleCe时报错的问题
This commit is contained in:
@@ -361,7 +361,7 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
|
||||
|
||||
let { topLineup, topLineupCe } = calCe.getTopLineup();
|
||||
let roleCeUpdate: RoleCeUpdate = calCe.getRoleCeTable();
|
||||
if(topLineupCe > roleCe.historyLineupCe) {
|
||||
if(topLineupCe > roleCe?.historyLineupCe??0) {
|
||||
roleCeUpdate = { ...roleCeUpdate, historyLineupCe: topLineupCe };
|
||||
}
|
||||
roleCe = await RoleCeModel.updateRoleCe(roleId, roleCeUpdate);
|
||||
|
||||
Reference in New Issue
Block a user