fix 结算保存机器人对手等级

This commit is contained in:
luying
2021-01-09 17:25:55 +08:00
parent e516458fbb
commit bdae6b104c
2 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ export class PvpHandler {
if(score > hisScore) hisScore = score;
let pLv = getLvByScore(heroScores);
const defenseInfo = await generPVPOppRecInfo(isSuccess, curOpp, oppRoleId, oppHeroes);
const defenseInfo = await generPVPOppRecInfo(isSuccess, curOpp, oppRoleId, oppHeroes, role.lv);
// 战报记录
await PvpRecordModel.createRec({roleId1: roleId, roleId2: oppRoleId, warId: BattleRecord.battleId, attackInfo, defenseInfo});