✨ feat(gvg): 激战期挑战相关接口整理

This commit is contained in:
luying
2023-02-17 10:59:38 +08:00
parent c0cc85ae0a
commit a838aba8e5
12 changed files with 316 additions and 129 deletions
+4 -3
View File
@@ -35,6 +35,7 @@ import { checkAndSetApiIsClose } from './app/services/chatService';
import { initGuildActivityIndexInPinus, resetJoinWoodenHorse } from './app/services/guildActivity/guildActivityService';
import { setGVGConfig, setGVGServerGroup } from './app/services/gvg/gvgService';
import { isDevelopEnv } from './app/services/utilService';
import { initTeamToMem } from './app/services/gvg/gvgBattleMemory';
const filePath = (_pinus as any).FILEPATH;
filePath.MASTER = '/config/master';
@@ -204,9 +205,9 @@ async function treatStartLogic(app: _pinus.Application) {
}
if(app.getServerType() == 'guild'|| app.getServerType() == 'chat'|| app.getServerType() == 'connector') {
setGVGServerGroup();
if(app.getServerType() == 'guild') {
setGVGConfig();
}
}
if(app.getServerType() == 'guild') {
setGVGConfig().then(initTeamToMem);
}
if(app.isMaster()) {