From af0e1df8179240f095e5ea507997aac985ae9fcc Mon Sep 17 00:00:00 2001 From: 237899745 <237899745@qq.com> Date: Thu, 22 Jan 2026 19:28:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20OSS=20=E9=85=8D?= =?UTF-8?q?=E9=A2=9D=E6=A3=80=E6=9F=A5=E7=9A=84=E8=AF=AD=E6=B3=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- backend/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/server.js b/backend/server.js index 9e44035..698c0bd 100644 --- a/backend/server.js +++ b/backend/server.js @@ -3049,7 +3049,7 @@ app.get('/api/files/upload-signature', authMiddleware, async (req, res) => { if (currentUsed + fileSize > ossQuota) { return res.status(400).json({ success: false, - message: + message: "OSS 存储空间不足,已用 " + (currentUsed / 1024 / 1024 / 1024).toFixed(2) + "GB / " + (ossQuota / 1024 / 1024 / 1024).toFixed(2) + "GB" }); } } catch (usageErr) { @@ -3201,7 +3201,7 @@ app.get('/api/files/download-url', authMiddleware, async (req, res) => { if (currentUsed + fileSize > ossQuota) { return res.status(400).json({ success: false, - message: + message: "OSS 存储空间不足,已用 " + (currentUsed / 1024 / 1024 / 1024).toFixed(2) + "GB / " + (ossQuota / 1024 / 1024 / 1024).toFixed(2) + "GB" }); } } catch (usageErr) {