From 77ae9e9f8d9ba7bd22f3efe2a15ed7ef17fbf727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E6=9C=88?= <63870437+CMHopeSunshine@users.noreply.github.com> Date: Wed, 18 May 2022 16:42:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=B3=E6=B8=B8=E7=A4=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Paimon_Info/get_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Paimon_Info/get_data.py b/Paimon_Info/get_data.py index 867cd41..60d133e 100644 --- a/Paimon_Info/get_data.py +++ b/Paimon_Info/get_data.py @@ -100,7 +100,7 @@ async def get_chara_detail_data(user_id, uid, use_cache=True): @cache(ttl=datetime.timedelta(hours=1)) async def get_chara_skill_data(uid, chara_id, use_cache=True): server_id = "cn_qd01" if uid[0] == '5' else "cn_gf01" - url = 'https://api-takumi-record.mihoyo.com/event/e20200928calculate/v1/sync/avatar/detail' + url = 'https://api-takumi.mihoyo.com/event/e20200928calculate/v1/sync/avatar/detail' cookie = await get_own_cookie(uid, action='查询角色天赋') if not cookie: return None @@ -120,7 +120,7 @@ async def get_chara_skill_data(uid, chara_id, use_cache=True): @cache(ttl=datetime.timedelta(hours=1)) async def get_monthinfo_data(uid, month, use_cache=True): server_id = "cn_qd01" if uid[0] == '5' else "cn_gf01" - url = 'https://hk4e-api-record.mihoyo.com/event/ys_ledger/monthInfo' + url = 'https://hk4e-api.mihoyo.com/event/ys_ledger/monthInfo' cookie = await get_own_cookie(uid, action='查询每月札记') if not cookie: return f'你的uid{uid}没有绑定对应的cookie,使用ysb绑定才能用每月札记哦!'