Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d4a79bb915
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue