This commit is contained in:
gazebo
2019-04-25 12:56:03 +08:00
parent ed17aac89f
commit e193e7f7fd
2 changed files with 3 additions and 6 deletions

View File

@@ -4,9 +4,7 @@ import (
"net/http"
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/partner/purchase/ebai"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego"
)
@@ -21,10 +19,9 @@ func (c *EbaiController) Msg() {
if callbackResponse == nil {
callbackResponse = ebai.OnCallbackMsg(obj)
}
if callbackResponse == nil || globals.IsCallbackAlwaysReturnSuccess() {
if callbackResponse == nil {
callbackResponse = api.EbaiAPI.Err2CallbackResponse(ebaiapi.GetCmd(c.Ctx.Request), nil, nil)
}
globals.SugarLogger.Debugf("ebai Msg callbackResponse:%s", utils.Format4Output(callbackResponse, false))
c.Data["json"] = callbackResponse
c.ServeJSON()
} else {