From 3d8678566e034595f0b02d1848772b89cb34c5c6 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Sun, 4 Jan 2026 17:17:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/do/ctx.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/biz/do/ctx.go b/internal/biz/do/ctx.go index d974381..2ebb3b3 100644 --- a/internal/biz/do/ctx.go +++ b/internal/biz/do/ctx.go @@ -343,13 +343,15 @@ func (d *Do) LoadUserPermission(client *gateway.Client, requireData *entitys.Req // 发送请求 res, err := request.Send() + + fmt.Errorf("获取用户权限失败,状态码:%d %s %+V", res.StatusCode, res.Text, request) + if err != nil { return } // 检查响应状态码 if res.StatusCode != http.StatusOK { - fmt.Errorf("获取用户权限失败,状态码:%d %s %+V", res.StatusCode, res.Text, request) err = errors.SysErrf("获取用户权限失败") return }