fix: 优化配置和API处理逻辑
This commit is contained in:
parent
fcf6bcbe75
commit
1b8077f403
|
|
@ -256,8 +256,10 @@ func GetManagerAndDefaultLossReasonApi(param *GetManagerAndDefaultLossReasonRequ
|
|||
log.Debug(pkg.JsonStringIgonErr(req.Headers))
|
||||
res, err := req.Send()
|
||||
if err != nil {
|
||||
log.Debug(err.Error())
|
||||
return nil, err
|
||||
}
|
||||
log.Debug(string(res.Content))
|
||||
if res.StatusCode != http.StatusOK {
|
||||
return nil, fmt.Errorf("request failed, status code: %d,resion: %s", res.StatusCode, res.Reason)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue