From e79a1ba56ceeb841d35b098e285f32b56529133d Mon Sep 17 00:00:00 2001 From: cr-zhichen <57337795+cr-zhichen@users.noreply.github.com> Date: Mon, 17 Mar 2025 07:10:21 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0CloudFlare=20ImgBed?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=AF=B7=E6=B1=82URL=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9EuploadNameType=E5=8F=82=E6=95=B0=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E4=BF=9D=E6=8C=81=E6=AD=A3=E7=A1=AE=E7=9A=84=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E7=9B=AE=E5=BD=95=E7=BB=93=E6=9E=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/uploader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/uploader.py b/app/core/uploader.py index b52b227..3f2b6ab 100644 --- a/app/core/uploader.py +++ b/app/core/uploader.py @@ -290,9 +290,9 @@ class CloudFlareImgBedUploader(ImageUploader): try: # 准备请求URL(添加认证码参数,如果存在) if self.auth_code: - request_url = f"{self.api_url}?authCode={self.auth_code}" + request_url = f"{self.api_url}?authCode={self.auth_code}&uploadNameType=origin" else: - request_url = self.api_url + request_url = f"{self.api_url}?uploadNameType=origin" # 准备文件数据 files = {