fix: 调整锁超时时间
This commit is contained in:
parent
58abdd2fd4
commit
884c2570a0
@ -16,7 +16,7 @@ export default async function (call: ApiCall<ReqDldFight, ResDldFight>) {
|
|||||||
if (!gotLock) {
|
if (!gotLock) {
|
||||||
return call.errorCode(-101); // -101 并发请求, 告知客户端稍后再试 request_too_fast
|
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();
|
let status = await WangZheRongYaofun.getWangZheStatus();
|
||||||
if (status.status != 3) {
|
if (status.status != 3) {
|
||||||
// 未到大乱斗时间
|
// 未到大乱斗时间
|
||||||
|
Loading…
Reference in New Issue
Block a user