政治需求:关闭接口功能

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
@@ -16,6 +16,7 @@ import { GroupMailType } from '../../../db/GroupMail';
import { ServerMailType } from '../../../db/ServerMail';
import { ActivityModelType } from '../../../db/Activity';
import { GUILD_ACTIVITY_TYPE, LADDER_STATUS } from '../../../consts';
import { setApiIsClose } from '../../../services/chatService';
export default function (app: Application) {
return new SystimerRemote(app);
@@ -216,4 +217,12 @@ export class SystimerRemote {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
public async setApiIsClose(isClose: boolean) {
try {
setApiIsClose(isClose);
} catch(e) {
errlogger.error(`remote ${__filename} \n ${e.stack}`);
}
}
}