some bug fix

This commit is contained in:
baiqwerdvd 2024-04-09 15:00:48 +08:00
parent 6556ca93e9
commit 90931a7994
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A
3 changed files with 4 additions and 4 deletions

View File

@ -46,12 +46,12 @@ async def get_resp_msg(bot: Bot, ev: Event):
)
if isinstance(check_cred, bool):
return "Cred无效!"
return await bot.send("Cred Check 不通过!")
else:
skd_uid = check_cred.user.id_
uid = check_cred.gameStatus.uid
if uid not in uid_list:
return "请先绑定该 Cred 对应的 uid"
return await bot.send("请先绑定该 Cred 对应的 uid")
skd_data = await ArknightsUser.select_data_by_uid(uid)
push_data = await ArknightsPush.select_data_by_uid(uid)

View File

@ -33,7 +33,7 @@ async def text2pic(text: str, max_size: int = 800, font_size: int = 20):
@sv_sr_wiki.on_prefix("ark角色图鉴")
async def send_role_wiki_pic(bot: Bot, ev: Event):
char_name = " ".join(re.findall("[\u4e00-\u9fa5]+", ev.text))
char_name = "".join(re.findall("[\u4e00-\u9fa5]+", ev.text))
char_id = None
for char_id_, char_info in CHARACTER_TABLE.chars.items():

View File

@ -1,3 +1,3 @@
ArknightsUID_version = "0.1.0"
Arknights_Client_version = "2.2.21"
Arknights_Res_version = "24-03-06-07-46-40-d13e0f"
Arknights_Res_version = "24-03-29-14-33-44-5002d2"