🎈 perf(image_utils): 在image_utils中禁用代理下载

get_download_image_hash使用场景是访问腾讯服务器获取图片,无需走代理
This commit is contained in:
meng-luo 2024-10-21 23:26:37 +08:00
parent 05f954eb8b
commit 4a84666075

View File

@ -402,7 +402,7 @@ async def get_download_image_hash(url: str, mark: str) -> str:
""" """
try: try:
if await AsyncHttpx.download_file( if await AsyncHttpx.download_file(
url, TEMP_PATH / f"compare_download_{mark}_img.jpg" url, TEMP_PATH / f"compare_download_{mark}_img.jpg", use_proxy=False
): ):
img_hash = get_img_hash(TEMP_PATH / f"compare_download_{mark}_img.jpg") img_hash = get_img_hash(TEMP_PATH / f"compare_download_{mark}_img.jpg")
return str(img_hash) return str(img_hash)