From 1b14f7986d682eefa4c29fbc5792e0d7eedb23da Mon Sep 17 00:00:00 2001 From: wudifeixue Date: Thu, 23 Dec 2021 22:42:20 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=B3=E5=93=88=E6=B8=B8ap?= =?UTF-8?q?i=E6=94=B9=E5=8F=98=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=8D=9F=E5=9D=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getDB.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/getDB.py b/getDB.py index 4c76aa15..330d9d52 100644 --- a/getDB.py +++ b/getDB.py @@ -405,7 +405,7 @@ async def GetDaily(Uid,ServerID="cn_gf01"): try: async with AsyncClient() as client: req = await client.get( - url="https://api-takumi.mihoyo.com/game_record/app/genshin/api/dailyNote?server=" + ServerID + "&role_id=" + Uid, + url="https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/dailyNote?server=" + ServerID + "&role_id=" + Uid, headers={ 'DS': DSGet("role_id=" + Uid + "&server=" + ServerID), 'x-rpc-app_version': mhyVersion, @@ -507,7 +507,7 @@ async def GetInfo(Uid,ck,ServerID="cn_gf01"): try: async with AsyncClient() as client: req = await client.get( - url="https://api-takumi.mihoyo.com/game_record/app/genshin/api/index?role_id=" + Uid + "&server=" + ServerID, + url="https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/index?role_id=" + Uid + "&server=" + ServerID, headers={ 'DS': DSGet("role_id=" + Uid + "&server=" + ServerID), 'x-rpc-app_version': mhyVersion, @@ -527,7 +527,7 @@ async def GetSpiralAbyssInfo(Uid, ck,Schedule_type="1",ServerID="cn_gf01"): try: async with AsyncClient() as client: req = await client.get( - url="https://api-takumi.mihoyo.com/game_record/app/genshin/api/spiralAbyss?schedule_type=" + Schedule_type + "&server="+ ServerID +"&role_id=" + Uid, + url="https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/spiralAbyss?schedule_type=" + Schedule_type + "&server="+ ServerID +"&role_id=" + Uid, headers={ 'DS': DSGet("role_id=" + Uid + "&schedule_type=" + Schedule_type + "&server="+ ServerID), 'Origin': 'https://webstatic.mihoyo.com', @@ -550,7 +550,7 @@ def GetCharacter(Uid,Character_ids, ck,ServerID="cn_gf01"): ServerID = "cn_qd01" try: req = requests.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={ 'DS': DSGet('',{"character_ids": Character_ids ,"role_id": Uid ,"server": ServerID}), 'Origin': 'https://webstatic.mihoyo.com', @@ -572,7 +572,7 @@ async def GetMysInfo(mysid,ck): try: async with AsyncClient() as client: req = await client.get( - url="https://api-takumi.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid=" + mysid, + url="https://api-takumi-record.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid=" + mysid, headers={ 'DS': DSGet("uid="+mysid), 'x-rpc-app_version': mhyVersion,