From 7cef262937fefd1e16d2001b136a2452846c66dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E6=9C=88?= <63870437+CMHopeSunshine@users.noreply.github.com> Date: Sun, 5 Feb 2023 18:23:22 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=9B=B4=E6=8D=A2=E5=8E=9F?= =?UTF-8?q?=E7=A5=9E=E5=9B=BE=E7=89=87=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/Paimon_Info/__init__.py | 4 ++-- LittlePaimon/plugins/Paimon_Info/draw_character_card.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LittlePaimon/plugins/Paimon_Info/__init__.py b/LittlePaimon/plugins/Paimon_Info/__init__.py index 261fe34..79d54da 100644 --- a/LittlePaimon/plugins/Paimon_Info/__init__.py +++ b/LittlePaimon/plugins/Paimon_Info/__init__.py @@ -164,7 +164,7 @@ async def _(event: MessageEvent, players=CommandPlayer(only_cn=False), character character_info = await gim.get_character(name=character) if not character_info: logger.info('原神角色卡片', '➤➤', {'角色': character}, '没有该角色信息,发送随机图', True) - msg += MessageSegment.image(f'http://img.genshin.cherishmoon.fun/{character}') + msg += MessageSegment.image(f'https://genshin-res.cherishmoon.fun/img?name={character}') else: img, temp_img = await draw_chara_card(character_info) logger.info('原神角色卡片', '➤➤', {'角色': character}, '制图完成', True) @@ -178,7 +178,7 @@ async def _(event: MessageEvent, players=CommandPlayer(only_cn=False), character character_info = await gim.get_character(name=characters[0]) if not character_info: logger.info('原神角色卡片', '➤➤', {'角色': characters[0]}, '没有该角色信息,发送随机图', True) - msg += MessageSegment.image(f'http://img.genshin.cherishmoon.fun/{characters[0]}') + msg += MessageSegment.image(f'https://genshin-res.cherishmoon.fun/img?name={characters[0]}') else: img, temp_img = await draw_chara_card(character_info) logger.info('原神角色卡片', '➤➤', {'角色': characters[0]}, '制图完成', True) diff --git a/LittlePaimon/plugins/Paimon_Info/draw_character_card.py b/LittlePaimon/plugins/Paimon_Info/draw_character_card.py index a0c5132..9c199b5 100644 --- a/LittlePaimon/plugins/Paimon_Info/draw_character_card.py +++ b/LittlePaimon/plugins/Paimon_Info/draw_character_card.py @@ -26,7 +26,7 @@ talent_color = [('#d5f2b6', '#6d993d'), ('#d5f2b6', '#6d993d'), ('#d5f2b6', '#6d async def draw_chara_card(info: Character): - img = await aiorequests.get_img(f'http://img.genshin.cherishmoon.fun/{info.name}', mode='RGBA', follow_redirects=True) + img = await aiorequests.get_img(f'https://genshin-res.cherishmoon.fun/img?name={info.name}', mode='RGBA', follow_redirects=True) if img == 'No Such File': return '暂时没有这个角色的同人图哦~', None # 新建卡片