fix pvpEnd无法获取数据

This commit is contained in:
luying
2021-01-14 16:22:00 +08:00
parent 5823a1b3eb
commit eb7a02b6ae
4 changed files with 6 additions and 5 deletions

View File

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