🐞 fix(gvg): 遗迹排名变化后刷新对手

This commit is contained in:
luying
2023-02-22 15:25:00 +08:00
parent cddeb71f3d
commit ed6bd1e8d5
2 changed files with 6 additions and 2 deletions

View File

@@ -339,7 +339,7 @@ export class GVGProduceHandler {
let historyRank = historyData?.rank||0;
// 交换排名
let { isChange, atkData, defData, endTime } = await GVGVestigeRankModel.changeRank(isSuccess, rec.vestigeId, rec.attackInfo, rec.defenseInfo);
atkData = await updateMyVestigeRank(isChange, atkData, historyRank, rec);
atkData = await updateMyVestigeRank(isChange, atkData, defData, historyRank, rec);
// 更新vestigeRec
rec = await GVGVestigeRecModel.battleEnd(battleCode, isSuccess, endTime, atkData?.rank, defData?.rank||rec.attackInfo.oldRank);
// 更新锁