From 4a84666075cae2e42702b3264cdd531db3c3df27 Mon Sep 17 00:00:00 2001 From: meng-luo Date: Mon, 21 Oct 2024 23:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf(image=5Futils):=20=E5=9C=A8?= =?UTF-8?q?image=5Futils=E4=B8=AD=E7=A6=81=E7=94=A8=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_download_image_hash使用场景是访问腾讯服务器获取图片,无需走代理 --- zhenxun/utils/image_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/utils/image_utils.py b/zhenxun/utils/image_utils.py index eb245f48..7cdeb4d2 100644 --- a/zhenxun/utils/image_utils.py +++ b/zhenxun/utils/image_utils.py @@ -402,7 +402,7 @@ async def get_download_image_hash(url: str, mark: str) -> str: """ try: 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") return str(img_hash)