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,