修复了一些已知问题

This commit is contained in:
2026-04-29 15:20:28 +08:00
parent 3aac2395a0
commit 5c0b9c8516
10 changed files with 117 additions and 20 deletions

View File

@@ -130,7 +130,7 @@ class RedisClient:
key = f"login_attempts:{username}"
attempts = await RedisClient.get(key)
attempts = int(attempts) + 1 if attempts else 1
await RedisClient.set(key, attempts, 900) # 15分钟锁定
await RedisClient.set(key, attempts, 300) # 5分钟锁定
return attempts
@staticmethod