From f8435b9f5fca1314c9d4bc25fdf4e7e559cd7762 Mon Sep 17 00:00:00 2001 From: txai-dev Date: Sun, 13 Sep 2026 12:34:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E5=8D=95=E6=8E=A5=E5=8F=A3=20P?= =?UTF-8?q?AY=5FNOT=5FCONFIGURED=20=E8=BF=94=E5=9B=9E503+=E6=98=8E?= =?UTF-8?q?=E7=A1=AE=E6=96=87=E6=A1=88=EF=BC=8C=E5=85=B6=E4=BD=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=B8=8D=E5=86=8D=E6=B3=84=E9=9C=B2=E5=86=85=E9=83=A8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/routes/payment.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/routes/payment.js b/server/src/routes/payment.js index 8182bb4..b0b4536 100755 --- a/server/src/routes/payment.js +++ b/server/src/routes/payment.js @@ -76,7 +76,10 @@ router.post('/create-order', async (req, res) => { } catch (error) { logger.error('创建订单失败:', error) - return ApiResponse.serverError(res, error.message) + if (error.code === 'PAY_NOT_CONFIGURED') { + return ApiResponse.error(res, error.message, 503) + } + return ApiResponse.error(res, '创建订单失败,请稍后再试', 500) } })