Skip to content

Commit

Permalink
Merge pull request #357 from MingxuanGame/main
Browse files Browse the repository at this point in the history
fix: mihoyo bbs api changed
  • Loading branch information
HibiKier authored May 19, 2022
2 parents 89b87a3 + c52b7ca commit 0f3efe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/genshin/query_user/query_role/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 0f3efe2

Please sign in to comment.