From 319afb24ec0bebab6c8507974ef50d00f6616e33 Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Fri, 6 Jun 2025 15:20:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(api):=20=E4=BC=98=E5=8C=96=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=8A=82=E7=82=B9=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 inbound 请求失败时,将错误信息详细输出 - 有助于调试和排查问题 --- api/client/add.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/client/add.js b/api/client/add.js index cb9644d..1a75ca5 100644 --- a/api/client/add.js +++ b/api/client/add.js @@ -13,7 +13,7 @@ module.exports = async (ctx) => { }); } const inbound = await ins.get(`/panel/api/inbounds/get/${id}`); - if (!inbound?.success) return (ctx.body = { code: "1", msg: "获取节点失败" }); + if (!inbound?.success) return (ctx.body = { code: "1", msg: `获取节点失败:${inbound}` }); uuid = uuid || randomUUID(); email = email || uuid.split("-")[0]; if (expiryTime != 0) {