From 3679d60e0c995ecfe081d9260956616e21212416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=9F=E6=88=91=E6=B8=85=E6=AC=A2=E4=B8=8E=E9=B9=A4?= =?UTF-8?q?=E6=A2=A6?= <15031168+aishy@user.noreply.gitee.com> Date: Fri, 31 Oct 2025 10:25:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:jion=E6=9C=AA=E6=B3=A8=E5=86=8C=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 3 +++ games/sanguosha.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 06cab05..2a01189 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,7 @@ + + \ No newline at end of file diff --git a/games/sanguosha.py b/games/sanguosha.py index 0dcd091..db40ad2 100644 --- a/games/sanguosha.py +++ b/games/sanguosha.py @@ -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':