政治需求:关闭接口功能

This commit is contained in:
luying
2022-09-23 17:29:38 +08:00
parent d3683b5b4b
commit d5e3c76f13
18 changed files with 160 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ import { taflush } from '../../../services/sdkService';
import { errlogger } from '../../../util/logger';
import { setWeek } from '../../../pubUtils/timeUtil';
import { savePvpSeasonMemory } from '../../../services/log/memoryLogService';
import { setApiIsClose } from '../../../services/chatService';
export default function (app: Application) {
new HandlerService(app, {});
return new ConnectorRemote(app);
@@ -180,4 +181,12 @@ export class ConnectorRemote {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
public async setApiIsClose(isClose: boolean) {
try {
setApiIsClose(isClose);
} catch(e) {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
}