diff --git a/game-server/app/services/pvpService.ts b/game-server/app/services/pvpService.ts index a3f676d1c..e233c7d79 100644 --- a/game-server/app/services/pvpService.ts +++ b/game-server/app/services/pvpService.ts @@ -487,7 +487,7 @@ export async function generMyRecInfo(pvpDefense: PvpDefenseType, role: RoleType, } let attackInfo = new PvpRecordPlayerInfo(); - attackInfo.setByRole(role, myHeroRecords, isSuccess, isSuccess ? addSumScore : 0, attack.pLv); + attackInfo.setByRole(role, myHeroRecords, isSuccess, isSuccess ? addSumScore : 0, role.lv); let newAttack = calLineupScore(attack, heroScores); let newDefense = calLineupScore(defense, heroScores); diff --git a/shared/db/PvpRecord.ts b/shared/db/PvpRecord.ts index 2a6030642..e529c1135 100644 --- a/shared/db/PvpRecord.ts +++ b/shared/db/PvpRecord.ts @@ -100,7 +100,7 @@ export class PvpRecordPlayerInfo { setByHistoryOpp(oppRole: PvpHistoryOppType, oppHeroRecords: HeroesRecord[], isSuccess: boolean, score: number, serverId: number) { this.roleId = robotIdComBack(oppRole.oppRoleId); this.roleName = oppRole.roleName; - this.lv = oppRole.pLv; + this.lv = oppRole.lv; this.head = oppRole.head; this.frame = oppRole.frame; this.spine = oppRole.spine;