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()
|
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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue