初始pvp返回补充

This commit is contained in:
mamengke01
2021-01-08 11:20:29 +08:00
parent 054016ff8f
commit 88695dbad5
4 changed files with 15 additions and 8 deletions

View File

@@ -39,8 +39,7 @@ export class PvpHandler {
let {warId, seasonNum, seasonEndTime} = await SystemConfigModel.findSystemConfig();
let {heroes, score, pLv, winStreakNum, refOppCnt, challengeCnt, challengeRefTime, receivedBox, hisScore, heroScores} = pvpDefense;
if (pvpDefense.seasonNum !== seasonNum) {
//TODO去结算
let {score, pLv, winStreakNum} = await setPvpDefResult(pvpDefense)
let { score, pLv, winStreakNum, heroScores, refOppCnt, challengeCnt, challengeRefTime } = await setPvpDefResult(pvpDefense, seasonNum);
}
let myRank = 999;//TODO去redis中获取
let data = {warId, seasonNum, seasonEndTime, myRank, oppPlayers, heroes, score, pLv, winStreakNum, refOppCnt, challengeCnt, challengeRefTime, receivedBox, hisScore, heroScores}