pvp:首页推送

This commit is contained in:
luying
2021-11-02 20:02:44 +08:00
parent cb3583276c
commit 8afe9150f2
5 changed files with 18 additions and 8 deletions
@@ -4,6 +4,7 @@ import { resResult } from '../../../pubUtils/util';
import { reloadResources } from '../../../pubUtils/data';
import { UserGuildType } from '../../../db/UserGuild';
import { kickUser } from '../../../services/connectorService';
import { PVPConfigType } from '../../../db/SystemConfig';
export default function (app: Application) {
new HandlerService(app, {});
return new ConnectorRemote(app);
@@ -51,4 +52,11 @@ export class ConnectorRemote {
public getServerMainten() {
return this.maintenServers;
}
public setPvpSeasonNum(pvpConfig: PVPConfigType) {
if(pvpConfig) {
this.app.set('pvpSeasonNum', pvpConfig.seasonNum);
this.app.set('pvpSeasonEndTime', pvpConfig.seasonEndTime);
}
}
}