🐛 修复enka接口无法获取数据问题

This commit is contained in:
CMHopeSunshine 2022-07-16 13:40:04 +08:00
parent 8026ba93d2
commit ba18bb9445

View File

@ -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: