From a6263398ede9d18b7486ca71645cf369f209d500 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 24 Jan 2026 23:33:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(storage):=20=E8=A7=A3=E5=86=B3URL=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E5=AD=97=E7=AC=A6=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加了URL解码功能以处理编码字符(如%2F转换为/) - 修复了URL匹配逻辑中的编码问题 - 确保替换操作正确处理已编码的路径字符 --- services/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/storage.py b/services/storage.py index 571a1e7..4353f53 100644 --- a/services/storage.py +++ b/services/storage.py @@ -146,6 +146,7 @@ def _upload_with_rclone(url: str, file_path: str) -> bool: for src, dst in replace_list: new_url = new_url.replace(src, dst) new_url = new_url.split("?", 1)[0] # 移除查询参数 + new_url = unquote(new_url) # 解码 URL 编码的字符(如 %2F -> /) if new_url == url: return False