warnf
This commit is contained in:
parent
ac33837a78
commit
378e33c9ad
|
@ -108,7 +108,7 @@ func (q *App) GetResult(rspBody []byte) (map[string]interface{}, error) {
|
|||
return nil, err
|
||||
}
|
||||
if cast.ToInt(result["errcode"]) != 0 {
|
||||
log.Errorf("result[%s] error ", string(rspBody))
|
||||
log.Warnf("result[%s] error ", string(rspBody))
|
||||
return nil, fmt.Errorf("%d:%s", cast.ToInt(result["errcode"]), cast.ToString(result["errmsg"]))
|
||||
}
|
||||
return result, nil
|
||||
|
|
Loading…
Reference in New Issue