🐛 修复扫码登陆无法绑定问题

This commit is contained in:
Wuyi无疑 2023-03-13 15:19:07 +08:00 committed by GitHub
parent d7c805ed35
commit 8d5cfad4b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ async def qrcode_login(bot: Bot, ev: Event, user_id: str) -> str:
uid_bind = await sqla.get_bind_uid(user_id)
# 没有在gsuid绑定uid的情况
if uid_bind:
if not uid_bind:
logger.warning('game_token获取失败')
im = '你还没有绑定uid请输入[绑定uid123456]绑定你的uid再发送[扫码登录]进行绑定'
return await send_msg(im)