- mtwm save order related status
This commit is contained in:
@@ -2,6 +2,7 @@ package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/mtwm"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
@@ -12,10 +13,10 @@ type MtwmController struct {
|
||||
|
||||
func (c *MtwmController) onCallbackMsg(msgType string) {
|
||||
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
_, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
|
||||
msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
|
||||
if callbackResponse == nil {
|
||||
// callbackResponse = mtwm.OnOrderCallbackMsg(msg)
|
||||
callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
callbackResponse = mtwm.OnOrderCallbackMsg(msg)
|
||||
// callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
}
|
||||
c.Data["json"] = callbackResponse
|
||||
c.ServeJSON()
|
||||
|
||||
Reference in New Issue
Block a user