mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-31 04:30:29 +08:00
🐛 Enka
UA
This commit is contained in:
parent
12ad30f44f
commit
2e0a2df4a2
@ -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.network/u/{str(uid)}/__data.json').text)
|
enka_data = json.loads(httpx.get(url=f'https://enka.network/u/{str(uid)}/__data.json').text, headers={'User-Agent': 'GenshinUID/2.0'})
|
||||||
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