From 806a32e1290d6a66f932ee9d94ece5a2cf3f610e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E6=9C=88?= <63870437+CMHopeSunshine@users.noreply.github.com> Date: Mon, 13 Feb 2023 12:26:11 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=94=B9=E6=BC=8F=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/Paimon_Wiki/Atlas/api.py | 2 +- LittlePaimon/plugins/Paimon_Wiki/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LittlePaimon/plugins/Paimon_Wiki/Atlas/api.py b/LittlePaimon/plugins/Paimon_Wiki/Atlas/api.py index 49dcb3c..fb9bda8 100644 --- a/LittlePaimon/plugins/Paimon_Wiki/Atlas/api.py +++ b/LittlePaimon/plugins/Paimon_Wiki/Atlas/api.py @@ -7,7 +7,7 @@ from LittlePaimon.config import config from LittlePaimon.utils.requests import aiorequests CARD_RESOURCES_API = '{proxy}https://raw.githubusercontent.com/Nwflower/Atlas/master/resource/text/card.yaml' -CARD_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/{name}.png' +CARD_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/{name}' RESOURCES_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/path.json' diff --git a/LittlePaimon/plugins/Paimon_Wiki/__init__.py b/LittlePaimon/plugins/Paimon_Wiki/__init__.py index 16f1fb2..d44abae 100644 --- a/LittlePaimon/plugins/Paimon_Wiki/__init__.py +++ b/LittlePaimon/plugins/Paimon_Wiki/__init__.py @@ -271,7 +271,7 @@ async def _(bot: Bot, event: MessageEvent, state: T_State, type: str = Arg('type if type in {'材料', '攻略', '图鉴'}: type = f'{temp_type}图鉴' if temp_type != '角色' else f'{temp_type}{type}' if type in {'七圣召唤图鉴', '武器图鉴'}: - final_name = (await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon')) + final_name = await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon') try: await total_wiki.finish( MessageSegment.image(API[type].format(proxy=config.github_proxy, name=final_name))) @@ -340,7 +340,7 @@ async def _(state: T_State, matches: dict = Arg('matches'), choice: str = ArgPla break if final_name: if type in {'七圣召唤图鉴', '武器图鉴'}: - final_name = (await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon')) + final_name = await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon') try: await total_wiki.finish( MessageSegment.image(API[type].format(proxy=config.github_proxy, name=final_name)))