successed_ignore
This commit is contained in:
parent
6126eceb5b
commit
056927329e
|
@ -72,11 +72,17 @@ func (g *Getui) getResult(rspBody []byte) (map[string]interface{}, error) {
|
|||
return nil, err
|
||||
}
|
||||
code := cast.ToInt(result["code"])
|
||||
msg := cast.ToString(result["msg"])
|
||||
data := cast.ToStringMap(result["data"])
|
||||
|
||||
if code == 20001 && msg == "successed_ignore" {
|
||||
return data, nil
|
||||
}
|
||||
|
||||
if code != 0 {
|
||||
log.Errorf("json[%s] rsp error", string(rspBody))
|
||||
return nil, errors.New(string(rspBody))
|
||||
}
|
||||
data := cast.ToStringMap(result["data"])
|
||||
return data, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue