- fixed bug (error msg should set on Desc, not Data).
This commit is contained in:
@@ -60,7 +60,7 @@ func (c *OrderController) orderOperate(handler func(vendorOrderID string, vendor
|
||||
if errMsg != "" {
|
||||
c.Data["json"] = &model.CallResult{
|
||||
Code: "-1",
|
||||
Data: errMsg,
|
||||
Desc: errMsg,
|
||||
}
|
||||
}
|
||||
c.ServeJSON()
|
||||
|
||||
Reference in New Issue
Block a user