mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🐛 修复错误的数字判断
This commit is contained in:
parent
10b666d691
commit
c5d35ac3a2
@ -74,7 +74,7 @@ class SQLA:
|
||||
new_sr_uid = new_sr_uid.strip()
|
||||
if len(new_uid) != 9 and len(new_sr_uid) != 9:
|
||||
return -1
|
||||
elif not new_uid.isdigit() and new_sr_uid.isdigit():
|
||||
elif not new_uid.isdigit() and not new_sr_uid.isdigit():
|
||||
return -3
|
||||
if new_uid and await self.bind_exists(user_id):
|
||||
uid_list = await self.get_bind_uid_list(user_id)
|
||||
|
6
poetry.lock
generated
6
poetry.lock
generated
@ -2230,14 +2230,14 @@ reference = "mirrors"
|
||||
|
||||
[[package]]
|
||||
name = "tomlkit"
|
||||
version = "0.11.7"
|
||||
version = "0.11.8"
|
||||
description = "Style preserving TOML library"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
files = [
|
||||
{file = "tomlkit-0.11.7-py3-none-any.whl", hash = "sha256:5325463a7da2ef0c6bbfefb62a3dc883aebe679984709aee32a317907d0a8d3c"},
|
||||
{file = "tomlkit-0.11.7.tar.gz", hash = "sha256:f392ef70ad87a672f02519f99967d28a4d3047133e2d1df936511465fbb3791d"},
|
||||
{file = "tomlkit-0.11.8-py3-none-any.whl", hash = "sha256:8c726c4c202bdb148667835f68d68780b9a003a9ec34167b6c673b38eff2a171"},
|
||||
{file = "tomlkit-0.11.8.tar.gz", hash = "sha256:9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3"},
|
||||
]
|
||||
|
||||
[package.source]
|
||||
|
Loading…
x
Reference in New Issue
Block a user