From 61218a8a0a2466fc69bdde86ec4e40678622448d Mon Sep 17 00:00:00 2001 From: baiqwerdvd <158065462+baiqwerdvd@users.noreply.github.com> Date: Sun, 26 May 2024 22:18:28 +0800 Subject: [PATCH] try fix --- ArknightsUID/arknightsuid_login/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArknightsUID/arknightsuid_login/__init__.py b/ArknightsUID/arknightsuid_login/__init__.py index fe14f2e..3657326 100644 --- a/ArknightsUID/arknightsuid_login/__init__.py +++ b/ArknightsUID/arknightsuid_login/__init__.py @@ -22,6 +22,8 @@ async def get_resp_msg(bot: Bot, ev: Event): if uid_list is None: return await bot.send(UID_HINT) phone_number = ev.text.strip() + if phone_number[0] == " ": + phone_number = phone_number[1:] if not phone_number.isdigit(): return await bot.send("你输入了错误的格式!") resp = await bot.receive_resp(