From 5ae8e6f6e3e319f2d76301c71b8d88e365c84ec7 Mon Sep 17 00:00:00 2001 From: forchannot <100580891+forchannot@users.noreply.github.com> Date: Thu, 26 Oct 2023 06:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=8E=9F=E7=A5=9E=E6=AD=A6?= =?UTF-8?q?=E5=99=A8=E5=9B=BE=E9=89=B4=E9=93=BE=E6=8E=A5=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84`/`=E5=92=8C=E5=AF=B9=E6=98=9F=E9=93=81=E6=94=BB?= =?UTF-8?q?=E7=95=A5=E9=93=BE=E6=8E=A5`=E7=A9=BA=E6=A0=BC`=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=BD=AC=E4=B9=89=20(#29)=20(#481)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 去除武器图鉴多余的/ * 星铁攻略对空格转义 --- LittlePaimon/plugins/Paimon_Wiki/wiki_api.py | 2 +- LittlePaimon/plugins/star_rail_wiki/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LittlePaimon/plugins/Paimon_Wiki/wiki_api.py b/LittlePaimon/plugins/Paimon_Wiki/wiki_api.py index b586f45..b73c976 100644 --- a/LittlePaimon/plugins/Paimon_Wiki/wiki_api.py +++ b/LittlePaimon/plugins/Paimon_Wiki/wiki_api.py @@ -7,7 +7,7 @@ API: Dict[str, str] = { '角色材料': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/material%20for%20role/{name}.png', '收益曲线': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/genshin_guide/curve/{name}.jpg', '参考面板': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/genshin_guide/panel/{name}.jpg', - '武器图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/{name}', + '武器图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master{name}', '圣遗物图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/artifact/{name}.png', '原魔图鉴': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/GenshinWikiMap/master/results/monster_map/{name}.jpg', '特产图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/specialty/{name}.png', diff --git a/LittlePaimon/plugins/star_rail_wiki/__init__.py b/LittlePaimon/plugins/star_rail_wiki/__init__.py index 4f0b310..03c829e 100644 --- a/LittlePaimon/plugins/star_rail_wiki/__init__.py +++ b/LittlePaimon/plugins/star_rail_wiki/__init__.py @@ -105,7 +105,7 @@ async def sr_wiki_got(matcher: Matcher, final_name = str(matches[0]) try: await wiki.finish(MessageSegment.image( - f'{config.github_proxy}https://raw.githubusercontent.com/Nwflower/star-rail-atlas/master{data[final_name]}' + f'{config.github_proxy}https://raw.githubusercontent.com/Nwflower/star-rail-atlas/master{data[final_name]}'.replace(" ", "%20") )) except ActionFailed: await wiki.finish(f'{final_name}的{type}发送失败,可能是网络问题')