From 4849cde2296243e16dde938bbe7e3d66b8dac410 Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 23 May 2023 20:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E5=B7=85=E5=B3=B0=E6=BC=94?= =?UTF-8?q?=E6=AD=A6):=20=E6=88=98=E6=8A=A5=E6=98=BE=E7=A4=BA=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E6=94=B9=E4=B8=BA=E7=8E=A9=E5=AE=B6=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/pvpService.ts | 2 +- shared/db/PvpRecord.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;