mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-30 04:00:31 +08:00
🐛 修复
This commit is contained in:
parent
2e0a2df4a2
commit
271d29c8ef
@ -56,7 +56,7 @@ async def enkaToData(uid: str, enka_data: Optional[dict] = None) -> dict:
|
||||
if enka_data:
|
||||
pass
|
||||
else:
|
||||
enka_data = json.loads(httpx.get(url=f'https://enka.network/u/{str(uid)}/__data.json').text, headers={'User-Agent': 'GenshinUID/2.0'})
|
||||
enka_data = json.loads(httpx.get(url=f'https://enka.network/u/{str(uid)}/__data.json', headers={'User-Agent': 'GenshinUID/2.0'}).text
|
||||
if enka_data == {}:
|
||||
return enka_data
|
||||
now = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user