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

3
.idea/misc.xml generated
View File

@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.12 (pythonProject)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (pythonProject)" project-jdk-type="Python SDK" />
</project>

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':