mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 修复enka接口无法获取数据问题
This commit is contained in:
parent
8026ba93d2
commit
ba18bb9445
@ -232,7 +232,7 @@ async def get_enka_data(uid):
|
||||
for _ in range(3):
|
||||
try:
|
||||
url = f'https://enka.shinshin.moe/u/{uid}/__data.json'
|
||||
resp = await aiorequests.get(url=url)
|
||||
resp = await aiorequests.get(url=url, follow_redirects=True)
|
||||
data = resp.json()
|
||||
return data
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user