- tiny buf fixed.

This commit is contained in:
gazebo
2018-06-18 16:32:31 +08:00
parent 26347127de
commit a7383e594e
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ func (c *ELMOrderController) MsgPost() {
obj, callbackResponse := globals.ElmAPI.GetMsgFromData(c.Ctx.Input.RequestBody)
if callbackResponse == nil {
cc := &controller.OrderController{}
c.Data["json"] = cc.OrderMessage(obj)
callbackResponse = cc.OrderMessage(obj)
}
c.Data["json"] = callbackResponse
c.ServeJSON()

View File

@@ -25,7 +25,7 @@ func (c *MTPSOrderController) Status() {
obj, callbackResponse := globals.MtpsAPI.GetOrderCallbackMsg(c.Ctx.Request)
if callbackResponse == nil {
cc := &controller.OrderController{}
c.Data["json"] = cc.OrderStatusChanged(obj)
callbackResponse = cc.OrderStatusChanged(obj)
}
c.Data["json"] = callbackResponse
c.ServeJSON()
@@ -40,7 +40,7 @@ func (c *MTPSOrderController) Except() {
obj, callbackResponse := globals.MtpsAPI.GetOrderExceptionCallbackMsg(c.Ctx.Request)
if callbackResponse == nil {
cc := &controller.OrderController{}
c.Data["json"] = cc.OrderException(obj)
callbackResponse = cc.OrderException(obj)
}
c.Data["json"] = callbackResponse
c.ServeJSON()