From 884c2570a0db2eaa07eaed7c35db21e1af8bf982 Mon Sep 17 00:00:00 2001 From: chenkai Date: Tue, 26 Dec 2023 14:34:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E9=94=81=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/wzry/ApiDldFight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_s2c/wzry/ApiDldFight.ts b/src/api_s2c/wzry/ApiDldFight.ts index bb98360..931c1b1 100644 --- a/src/api_s2c/wzry/ApiDldFight.ts +++ b/src/api_s2c/wzry/ApiDldFight.ts @@ -16,7 +16,7 @@ export default async function (call: ApiCall) { if (!gotLock) { return call.errorCode(-101); // -101 并发请求, 告知客户端稍后再试 request_too_fast } - await G.ioredis.pexpire(lockKey, 500); // 设置 ttl 避免死锁. 策划要求: 500ms + await G.ioredis.expire(lockKey, 1); // 设置 ttl 避免死锁 let status = await WangZheRongYaofun.getWangZheStatus(); if (status.status != 3) { // 未到大乱斗时间