mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 06:10:01 +08:00
fix(user_console): ensure uid returns a valid value by defaulting to 1
This commit is contained in:
@@ -73,7 +73,7 @@ class UserConsole(Model):
|
||||
uid = data[0] if data else 0
|
||||
uid = uid + 1
|
||||
await CacheRoot.set(CacheType.TEMP, "USER_CONSOLE_UID", uid)
|
||||
return uid
|
||||
return uid or 1
|
||||
|
||||
@classmethod
|
||||
async def add_gold(
|
||||
|
||||
Reference in New Issue
Block a user