From 4aab1a74a54556e57e928269d232b00247488d53 Mon Sep 17 00:00:00 2001 From: mediabot-pt <295750538+mediabot-pt@users.noreply.github.com> Date: Wed, 1 Jul 2026 12:57:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Qiniu=E4=B8=8A=E4=BC=A0=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=B6=88=E6=81=AF=E5=B8=A6HTTP=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A0=81=E5=92=8C=E5=85=B7=E4=BD=93=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/par/core/storage/QiniuStorageService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/par-core/src/main/java/com/par/core/storage/QiniuStorageService.java b/par-core/src/main/java/com/par/core/storage/QiniuStorageService.java index ad1d852..d98f884 100644 --- a/par-core/src/main/java/com/par/core/storage/QiniuStorageService.java +++ b/par-core/src/main/java/com/par/core/storage/QiniuStorageService.java @@ -68,8 +68,9 @@ public class QiniuStorageService implements StorageService { uploadManager.put(content.getBytes(), path, auth.uploadToken(bucket)); log.debug("Qiniu 上传: {}", path); } catch (QiniuException e) { - log.error("Qiniu 上传失败 {}: {}", path, e.response != null ? e.response.error : e.getMessage()); - throw new RuntimeException("Qiniu upload failed: " + path, e); + String detail = e.response != null ? "code=" + e.response.statusCode + " " + e.response.error : e.getMessage(); + log.error("Qiniu 上传失败 {}: {}", path, detail, e); + throw new RuntimeException("Qiniu upload failed: " + path + " (" + detail + ")", e); } }