🔧 3.0角色部分适配

This commit is contained in:
CMHopeSunshine 2022-08-24 14:38:46 +08:00
parent e5434d50cf
commit 5e2cceccb5

View File

@ -59,7 +59,7 @@ async def check_resource():
file_path.unlink() file_path.unlink()
flag = True flag = True
try: try:
await aiorequests.download(url=f'http://img.genshin.cherishmoon.fun/resources/{resource}', save_path=file_path) await aiorequests.download(url=f'http://img.genshin.cherishmoon.fun/resources/{resource["path"]}', save_path=file_path)
await asyncio.sleep(0.5) await asyncio.sleep(0.5)
except Exception as e: except Exception as e:
logger.warning('资源检查', f'下载<m>{resource.split("/")[-1]}</m>时<r>出错: {e}</r>') logger.warning('资源检查', f'下载<m>{resource.split("/")[-1]}</m>时<r>出错: {e}</r>')