🐛 修复某些情况下绑定uid失效

This commit is contained in:
Wuyi无疑 2023-04-11 18:00:50 +08:00 committed by GitHub
parent 857d02f2e5
commit 77ea2a02e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class SQLA:
return -1
if await self.bind_exists(user_id):
uid_list = await self.get_bind_uid_list(user_id)
if uid_list and new_uid not in uid_list:
if new_uid not in uid_list:
uid_list.append(new_uid)
else:
return -2