Merge remote-tracking branch 'origin/master'

This commit is contained in:
renzhiyuan 2026-01-04 17:22:51 +08:00
commit d4a79bb915
1 changed files with 3 additions and 1 deletions

View File

@ -343,13 +343,15 @@ func (d *Do) LoadUserPermission(client *gateway.Client, requireData *entitys.Req
// 发送请求 // 发送请求
res, err := request.Send() res, err := request.Send()
fmt.Errorf("获取用户权限失败,状态码:%d %s %+V", res.StatusCode, res.Text, request)
if err != nil { if err != nil {
return return
} }
// 检查响应状态码 // 检查响应状态码
if res.StatusCode != http.StatusOK { if res.StatusCode != http.StatusOK {
fmt.Errorf("获取用户权限失败,状态码:%d %s %+V", res.StatusCode, res.Text, request)
err = errors.SysErrf("获取用户权限失败") err = errors.SysErrf("获取用户权限失败")
return return
} }