fix:jion未注册加入问题

This commit is contained in:
借我清欢与鹤梦
2025-10-31 10:25:38 +08:00
parent 96513c6e60
commit 3679d60e0c
2 changed files with 4 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class SanguoshaGame(BaseGame):
# 获取用户信息
user = self.db.get_or_create_user(user_id)
username = user.get('username', f'用户{user_id}')
username = user.get('username') or f'用户{user_id}'
# 路由指令
if not args or args == 'help':