京东商城建店
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
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,14 +9,14 @@ type JdsController struct {
|
||||
}
|
||||
|
||||
func (c *JdsController) Msg(msgType string) {
|
||||
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = mtwm.OnCallbackMsg(msg)
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
}
|
||||
}
|
||||
c.Data["json"] = callbackResponse
|
||||
c.ServeJSON()
|
||||
// c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
// msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
|
||||
// if callbackResponse == nil {
|
||||
// callbackResponse = mtwm.OnCallbackMsg(msg)
|
||||
// if callbackResponse == nil {
|
||||
// callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
// }
|
||||
// }
|
||||
// c.Data["json"] = callbackResponse
|
||||
// c.ServeJSON()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user