mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-06-03 05:59:51 +08:00
修复:EnkaAPI
This commit is contained in:
parent
62b4593ef9
commit
b70a9a01f6
@ -56,7 +56,7 @@ async def enkaToData(uid: str, enka_data: Optional[dict] = None) -> dict:
|
|||||||
if enka_data:
|
if enka_data:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
enka_data = json.loads(httpx.get(f'https://enka.shinshin.moe/u/{str(uid)}/__data.json').text)
|
enka_data = json.loads(httpx.get(f'https://enka.network/u/{str(uid)}/__data.json').text)
|
||||||
if enka_data == {}:
|
if enka_data == {}:
|
||||||
return enka_data
|
return enka_data
|
||||||
now = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
|
now = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user