重置时间

This commit is contained in:
mamengke01
2021-01-12 17:41:38 +08:00
parent 95e9b016c1
commit 24b7a9f888
4 changed files with 23 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import {Application, BackendSession} from 'pinus';
import {Application, BackendSession, pinus} from 'pinus';
import { uniq, findWhere, findIndex } from 'underscore';
import { gameData, getPvpBoxs } from '../../../pubUtils/data';
import { refreshEnemies, getEnemies, getLvByScore, defaultHeroes, comsumeChallengeCnt, refresh, findPvpDefByRoleId, checkRoleIsRobot, getRefOppCnt, findPvpDefAllByRoleId, generPVPOppRecInfo, generMyRecInfo, getRobotLineup, getPlayerLineup } from '../../../services/pvpService';
@@ -71,7 +71,7 @@ export class PvpHandler {
async debugPvpSeasonResetTime(msg: {day: number}, session: BackendSession) {
let { day } = msg;
let { seasonNum, seasonEndTime } = await resetPvpSeasonTime(day);
let { seasonNum, seasonEndTime } = await pinus.app.rpc.systimer.systimerRemote.resetPvpSeasonTime.toServer('systimer-server-1', day);
return resResult(STATUS.SUCCESS, { seasonNum, seasonEndTime });
}