This commit is contained in:
xtaodada 2022-06-04 14:29:30 +08:00
parent b4211d3ea4
commit b94ddfc17c
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ async def enkaToData(uid: str) -> Optional[str]:
json.dump(enka_data, file, ensure_ascii=False)
if 'avatarInfoList' not in enka_data:
return f'UID{uid}刷新失败!未打开角色展柜!'
return f'UID{uid}刷新失败!未打开角色展柜详细信息!'
char_name_list = []
for char in enka_data['avatarInfoList']:

View File

@ -10,7 +10,7 @@ async def refresh_command(_: Client, message: Message):
if not check_bind(message.from_user.id):
return await message.reply(f"请使用 <code>/bind [uid]</code> 绑定游戏 uid", quote=True)
uid = get_bind_uid(message.from_user.id)
if len(message.command) == 1:
if len(message.command) > 1:
if message.command[1].isnumeric():
uid = message.command[1]
msg = await message.reply(f"正在刷新数据,请稍等。。。", quote=True)