寻宝:服务器重启时清理之前战斗的状态;匹配时检查队伍时间
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { COM_TEAM_STATUS } from './app/consts/consts';
|
||||
import {
|
||||
createTcpAcceptor,
|
||||
createTcpMailBox,
|
||||
@@ -19,6 +20,7 @@ import * as redlockCacheService from './app/services/redlockCacheService';
|
||||
import * as redLockService from './app/services/redLockService';
|
||||
// TODO 需要整理。
|
||||
import _pinus = require('pinus');
|
||||
import { updateTeamStatus } from './app/services/comBattleService';
|
||||
|
||||
const filePath = (_pinus as any).FILEPATH;
|
||||
filePath.MASTER = '/config/master';
|
||||
@@ -68,6 +70,7 @@ app.configure(function() {
|
||||
if (app.serverId === 'master-server-1') {
|
||||
redisService.initAllRank();
|
||||
redisService.clearComBtlQueue();
|
||||
updateTeamStatus(COM_TEAM_STATUS.DEFAULT, COM_TEAM_STATUS.LOOSE);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user