From 2aa5522bc7a9bd1b27acbca740b92d75d93d025b Mon Sep 17 00:00:00 2001 From: forchannot Date: Tue, 27 Dec 2022 09:34:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E4=BE=BF=E7=AD=BE=E6=B7=B1=E6=B8=8A=E5=89=A9=E4=BD=99=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/Paimon_DailyNote/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittlePaimon/plugins/Paimon_DailyNote/draw.py b/LittlePaimon/plugins/Paimon_DailyNote/draw.py index 64f257c..05d8a81 100644 --- a/LittlePaimon/plugins/Paimon_DailyNote/draw.py +++ b/LittlePaimon/plugins/Paimon_DailyNote/draw.py @@ -85,7 +85,7 @@ async def draw_daily_note_card(data, uid): left_day = (abyss_new - now).days total_day = (abyss_new - abyss_now).days await bg_img.text(f"{left_day}/{total_day}", 337, 1358, fm.get('number.ttf', 48), 'white') - await bg_img.text(f"本期深渊还有{total_day}天结束", + await bg_img.text(f"本期深渊还有{left_day}天结束", 745, 1358, fm.get('优设标题黑.ttf', 40), 'white') await bg_img.draw_ring(percent=left_day / total_day, pos=(100, 1249), size=(266, 266), width=0.18, colors=['#507bd0', '#FFFFFF']) From 17cc4a8300bc622876c4740f5889bb3e3df06cde Mon Sep 17 00:00:00 2001 From: CM-Edelweiss <2633668472@qq.com> Date: Wed, 28 Dec 2022 16:16:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=B2=A1=E7=BB=91=E5=AE=9Ack=E7=9A=84?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/utils/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LittlePaimon/utils/api.py b/LittlePaimon/utils/api.py index 8b5e59e..ca6d068 100644 --- a/LittlePaimon/utils/api.py +++ b/LittlePaimon/utils/api.py @@ -293,7 +293,7 @@ async def get_mihoyo_private_data( server_id = 'cn_qd01' if uid[0] == '5' else 'cn_gf01' cookie_info, _ = await get_cookie(user_id, uid, True, True) if not cookie_info: - return '未绑定私人cookie,获取cookie的教程:\ndocs.qq.com/doc/DQ3JLWk1vQVllZ2Z1\n获取后,使用[ysb cookie]指令绑定' \ + return '未绑定私人cookie,绑定方法二选一:\n1.通过米游社扫码绑定:\n请发送指令[原神扫码绑定]\n2.获取cookie的教程:\ndocs.qq.com/doc/DQ3JLWk1vQVllZ2Z1\n获取后,使用[ysb cookie]指令绑定' \ + (f'或前往{config.CookieWeb_url}网页添加绑定' if config.CookieWeb_enable else '') if mode == 'role_skill': data = await aiorequests.get(url=CHARACTER_SKILL_API, @@ -422,7 +422,7 @@ async def get_authkey_by_stoken(user_id: str, uid: str) -> Tuple[Optional[str], server_id = 'cn_qd01' if uid[0] == '5' else 'cn_gf01' cookie_info, _ = await get_cookie(user_id, uid, True, True) if not cookie_info: - return '未绑定私人cookie,获取cookie的教程:\ndocs.qq.com/doc/DQ3JLWk1vQVllZ2Z1\n获取后,使用[ysb cookie]指令绑定' \ + return '未绑定私人cookie,绑定方法二选一:\n1.通过米游社扫码绑定:\n请发送指令[原神扫码绑定]\n2.获取cookie的教程:\ndocs.qq.com/doc/DQ3JLWk1vQVllZ2Z1\n获取后,使用[ysb cookie]指令绑定' \ + (f'或前往{config.CookieWeb_url}网页添加绑定' if config.CookieWeb_enable else ''), False, cookie_info if not cookie_info.stoken: return 'cookie中没有stoken字段,请重新绑定', False, cookie_info