京东商城建店

This commit is contained in:
苏尹岚
2020-05-25 18:20:50 +08:00
parent f6ef25160b
commit 2ba582c538

View File

@@ -1,9 +1,6 @@
package controllers package controllers
import ( 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" "github.com/astaxie/beego"
) )
@@ -12,14 +9,14 @@ type JdsController struct {
} }
func (c *JdsController) Msg(msgType string) { func (c *JdsController) Msg(msgType string) {
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "") // c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request) // msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
if callbackResponse == nil { // if callbackResponse == nil {
callbackResponse = mtwm.OnCallbackMsg(msg) // callbackResponse = mtwm.OnCallbackMsg(msg)
if callbackResponse == nil { // if callbackResponse == nil {
callbackResponse = mtwmapi.Err2CallbackResponse(nil, "") // callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")
} // }
} // }
c.Data["json"] = callbackResponse // c.Data["json"] = callbackResponse
c.ServeJSON() // c.ServeJSON()
} }