修复了一些已知问题

This commit is contained in:
canglan committed 2026-04-29 15:20:28 +08:00
1 parent 3aac2395a0
commit 5c0b9c8516
10 files changed
+117 -20

No files matched your search

+1 -1
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