- change Jdorder.Success to bool. refine the json field name of Jdorder.
This commit is contained in:
@@ -158,12 +158,7 @@ func newOrder(order *jdapi.CallbackOrderMsg) error {
|
||||
|
||||
rec.Code, _ = result["code"].(string)
|
||||
rec.Msg, _ = result["msg"].(string)
|
||||
success, _ := result["success"].(bool)
|
||||
if success {
|
||||
rec.Success = 1
|
||||
} else {
|
||||
rec.Success = 0
|
||||
}
|
||||
rec.Success, _ = result["success"].(bool)
|
||||
|
||||
// todo
|
||||
rec.CityName = "all"
|
||||
|
||||
Reference in New Issue
Block a user