fix
This commit is contained in:
parent
b4211d3ea4
commit
b94ddfc17c
@ -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']:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user