mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-06-03 05:59:51 +08:00
修复米哈游api改变导致的插件损坏
This commit is contained in:
parent
2a8e54d1f0
commit
1b14f7986d
10
getDB.py
10
getDB.py
@ -405,7 +405,7 @@ async def GetDaily(Uid,ServerID="cn_gf01"):
|
|||||||
try:
|
try:
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
req = await client.get(
|
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={
|
headers={
|
||||||
'DS': DSGet("role_id=" + Uid + "&server=" + ServerID),
|
'DS': DSGet("role_id=" + Uid + "&server=" + ServerID),
|
||||||
'x-rpc-app_version': mhyVersion,
|
'x-rpc-app_version': mhyVersion,
|
||||||
@ -507,7 +507,7 @@ async def GetInfo(Uid,ck,ServerID="cn_gf01"):
|
|||||||
try:
|
try:
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
req = await client.get(
|
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={
|
headers={
|
||||||
'DS': DSGet("role_id=" + Uid + "&server=" + ServerID),
|
'DS': DSGet("role_id=" + Uid + "&server=" + ServerID),
|
||||||
'x-rpc-app_version': mhyVersion,
|
'x-rpc-app_version': mhyVersion,
|
||||||
@ -527,7 +527,7 @@ async def GetSpiralAbyssInfo(Uid, ck,Schedule_type="1",ServerID="cn_gf01"):
|
|||||||
try:
|
try:
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
req = await client.get(
|
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={
|
headers={
|
||||||
'DS': DSGet("role_id=" + Uid + "&schedule_type=" + Schedule_type + "&server="+ ServerID),
|
'DS': DSGet("role_id=" + Uid + "&schedule_type=" + Schedule_type + "&server="+ ServerID),
|
||||||
'Origin': 'https://webstatic.mihoyo.com',
|
'Origin': 'https://webstatic.mihoyo.com',
|
||||||
@ -550,7 +550,7 @@ def GetCharacter(Uid,Character_ids, ck,ServerID="cn_gf01"):
|
|||||||
ServerID = "cn_qd01"
|
ServerID = "cn_qd01"
|
||||||
try:
|
try:
|
||||||
req = requests.post(
|
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={
|
headers={
|
||||||
'DS': DSGet('',{"character_ids": Character_ids ,"role_id": Uid ,"server": ServerID}),
|
'DS': DSGet('',{"character_ids": Character_ids ,"role_id": Uid ,"server": ServerID}),
|
||||||
'Origin': 'https://webstatic.mihoyo.com',
|
'Origin': 'https://webstatic.mihoyo.com',
|
||||||
@ -572,7 +572,7 @@ async def GetMysInfo(mysid,ck):
|
|||||||
try:
|
try:
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
req = await client.get(
|
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={
|
headers={
|
||||||
'DS': DSGet("uid="+mysid),
|
'DS': DSGet("uid="+mysid),
|
||||||
'x-rpc-app_version': mhyVersion,
|
'x-rpc-app_version': mhyVersion,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user