重置时间
This commit is contained in:
@@ -18,6 +18,7 @@ import { HeroModel, HeroType } from '../db/Hero';
|
||||
import { CeAttrNumber, CeAttr, CeAttrRole } from '../db/generalField';
|
||||
import { DicWarJson } from '../pubUtils/dictionary/DicWarJson';
|
||||
import { findWhere, findIndex } from 'underscore';
|
||||
import { pinus } from 'pinus';
|
||||
|
||||
|
||||
export async function initPvpInfo(role: RoleType) {
|
||||
@@ -364,7 +365,7 @@ export async function findPvpDefAllByRoleId(roleId: string) {
|
||||
let pvpDefense = await PvpDefenseModel.findByRoleIdIncludeAll(roleId);
|
||||
let {warId, seasonNum, seasonEndTime} = await SystemConfigModel.findSystemConfig();
|
||||
if (pvpDefense.seasonNum !== seasonNum) {
|
||||
let { score, pLv, winStreakNum, heroScores, challengeCnt, challengeRefTime } = await setPvpDefResult(pvpDefense, seasonNum, seasonEndTime);
|
||||
let { score, pLv, winStreakNum, heroScores, challengeCnt, challengeRefTime } = await pinus.app.rpc.systimer.systimerRemote.setPvpDefResult.toServer('systimer-server-1', pvpDefense, seasonNum, seasonEndTime);
|
||||
pvpDefense.score = score;
|
||||
pvpDefense.pLv = pLv;
|
||||
pvpDefense.winStreakNum = winStreakNum;
|
||||
|
||||
Reference in New Issue
Block a user