From c52b7ca2e9178d205aba930918ddbe4ce9aa1591 Mon Sep 17 00:00:00 2001 From: MingxuanGame Date: Thu, 19 May 2022 17:47:20 +0800 Subject: [PATCH] fix: mihoyo bbs api changed --- plugins/genshin/query_user/query_role/data_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/query_user/query_role/data_source.py b/plugins/genshin/query_user/query_role/data_source.py index 8ecdb447..71a04842 100644 --- a/plugins/genshin/query_user/query_role/data_source.py +++ b/plugins/genshin/query_user/query_role/data_source.py @@ -128,7 +128,7 @@ async def get_character( ) -> Optional[dict]: try: req = await AsyncHttpx.post( - url="https://api-takumi.mihoyo.com/game_record/app/genshin/api/character", + url="https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/character", headers={ "Accept": "application/json, text/plain, */*", "DS": get_ds( @@ -232,7 +232,7 @@ async def get_mys_data(uid: str, mys_id: Optional[str]) -> Optional[List[Dict]]: if mys_id: try: req = await AsyncHttpx.get( - url=f"https://api-takumi.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid={mys_id}", + url=f"https://api-takumi-record.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid={mys_id}", headers={ "DS": get_ds(f"uid={mys_id}"), "x-rpc-app_version": Config.get_config("genshin", "mhyVersion"),