Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
修复查询
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyumoko committed Dec 24, 2021
1 parent 64f3920 commit e320a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egenshin/player_info/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def get_cookie_info(cookie):
if cookie_info_cache.get(account_id):
return cookie_info_cache[account_id]

url = 'https://api-takumi.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid=' + account_id
url = 'https://api-takumi-record.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid=' + account_id

headers = {
'x-rpc-app_version': '2.16.1',
Expand Down Expand Up @@ -208,7 +208,7 @@ async def request_data(

json_data = None
fn = aiorequests.get
base_url = 'https://api-takumi.mihoyo.com/game_record/app/genshin/api/%s'
base_url = 'https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/%s'
url = base_url % api + '?'
if api == 'index':
url += urlencode(params)
Expand Down

0 comments on commit e320a49

Please sign in to comment.