- fixed bug (error msg should set on Desc, not Data).

This commit is contained in:
gazebo
2018-08-22 16:28:47 +08:00
parent 79ed0a7929
commit 4ccb8ef402

View File

@@ -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()