- refactor.

This commit is contained in:
gazebo
2018-07-10 18:29:34 +08:00
parent 5702df37b0
commit a33fdb289d
3 changed files with 33 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ func (a API) QuerySingleOrder(orderId string) (map[string]interface{}, error) {
jdParams := make(map[string]interface{})
jdParams["orderId"] = orderId
result, err := a.AccessAPIHavePage("order/es/query", jdParams, nil, nil, nil)
if err == nil {
if err != nil {
return nil, err
}
return result[0].(map[string]interface{}), nil