✨ feat(gvg): 添加贡献等接口

This commit is contained in:
luying
2023-02-17 10:58:05 +08:00
parent 6cc38053e7
commit 0530f931bc
17 changed files with 301 additions and 49 deletions
+5 -2
View File
@@ -33,7 +33,7 @@ import { loadGmDb } from './app/db';
import { loadActivities } from './app/services/activity/activityRemoteService';
import { checkAndSetApiIsClose } from './app/services/chatService';
import { initGuildActivityIndexInPinus, resetJoinWoodenHorse } from './app/services/guildActivity/guildActivityService';
import { setGVGServerGroup } from './app/services/gvg/gvgService';
import { setGVGConfig, setGVGServerGroup } from './app/services/gvg/gvgService';
const filePath = (_pinus as any).FILEPATH;
filePath.MASTER = '/config/master';
@@ -201,8 +201,11 @@ async function treatStartLogic(app: _pinus.Application) {
if(app.getServerType() != 'systimer') {
timeTaskService.initHiddenData();
}
if(app.getServerType() == 'battle'|| app.getServerType() == 'chat'|| app.getServerType() == 'connector') {
if(app.getServerType() == 'guild'|| app.getServerType() == 'chat'|| app.getServerType() == 'connector') {
setGVGServerGroup();
if(app.getServerType() == 'guild') {
setGVGConfig();
}
}
if(app.isMaster()) {