pvp:修复赛季初始排行

This commit is contained in:
luying
2021-11-02 16:08:56 +08:00
parent dafac2c047
commit 33f2d73d20
10 changed files with 75 additions and 31 deletions
+3 -3
View File
@@ -122,8 +122,9 @@ app.configure(ALL_ENVS, 'guild', function () {
})
app.configure(ALL_ENVS, 'systimer', function () {
app.afterStart(() => {
timeTaskService.init();
app.afterStart(async () => {
await redisService.initAllRank();
await timeTaskService.init();
});
});
@@ -219,7 +220,6 @@ if (app.isMaster()) {
app.event.on('start_all', (servers) => {
// 全部服务器启动完毕后初始化 redis 数据
redisService.readDataBase();
redisService.initAllRank();
redisService.clearComBtlQueue();
redisService.clearChannelServers();
updateTeamStatus(COM_TEAM_STATUS.DEFAULT, COM_TEAM_STATUS.LOOSE);