政治需求:关闭接口功能

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

@@ -14,13 +14,23 @@ interface ProtectApi {
// 频率 毫秒
readonly interval: number;
}
interface CloseApi {
// id
readonly id: number;
// 描述
readonly desc: string;
// 接口
readonly route: string;
// 参数
readonly param: any;
}
export interface DicServerConst {
// 保护的接口
readonly PROTECT_API: ProtectApi[];
// 某些api功能关闭
readonly API_IS_CLOSE: number;
// 关闭的接口
readonly CLOSE_APIS: string[];
readonly CLOSE_APIS: CloseApi[];
// 是否直接关掉登录
readonly CLOSE_LOGIN: number;
// 是否当检测在线玩家过多是关掉登录