From fb7684326e33fa9e6539e8f357aff1ef6d0dcdab Mon Sep 17 00:00:00 2001 From: xcy <871622040@qq.com> Date: Wed, 20 Dec 2023 15:19:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E4=B8=B4=E6=97=B6=E5=81=9C?= =?UTF-8?q?=E6=9C=8D=E6=89=A7=E8=A1=8C=E8=84=9A=E6=9C=AC=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BD=BF=E7=94=A8=E8=BF=99=E4=B8=AA=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/setWs.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/setWs.ts b/src/setWs.ts index 3a97c54..f5af54c 100644 --- a/src/setWs.ts +++ b/src/setWs.ts @@ -98,6 +98,15 @@ function setWs(server: WsServer) { //执行 API 接口实现之前 server.flows.preApiCallFlow.push(async call => { + // 临时停服维护方案 + // let lng = { + // "zh-TW": "停服維護中,請等待!", + // "ko": "서버 점검 중, 잠시만 기다려 주세요.", + // "ja": "サーバーメンテナンス中、しばらくお待ちください。", + // "en": "Server under maintenance. Please wait.", + // } + // call.error("", {code: -1, message: lng[call.req.lng] || lng["ja"]}) + // return null; //是否短时间内重复请求某个api // let timeIntervalLimit = call.service.conf?.timeIntervalLimit == undefined ? 500 : call.service.conf?.timeIntervalLimit;