🐛 修复部分情况下扫码登陆可能报错的情况, 该报错不影响使用 (#120)

This commit is contained in:
KimigaiiWuyi 2025-05-16 20:18:11 +08:00
parent ef151d55d3
commit c4d6764921

View File

@ -342,7 +342,7 @@ async def _deal_ck(bot_id: str, mes: str, user_id: str) -> str:
insert_dict[f'uid_{_i}'] = _luid
_uid_exist = await GsUID.uid_exist(_uid, game_name)
if _uid_exist:
if _uid_exist and insert_dict:
await GsUID.update_data(
_uid_exist, game_name, **insert_dict
)