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

@@ -157,8 +157,8 @@ jdToken = "84541069-fbe2-424b-b625-9b2ba1d4c9e6"
jdAppKey = "5d5577a2506f41b8b4ec520ba83490f5"
jdSecret = "0b01b9eeb15b41dab1c3d05d95c17a26"
ebaiSource = "34665"
ebaiSecret = "c3db75b754ea2d89"
ebaiSource = "62289"
ebaiSecret = "d3ec2358d6a819ea"
disableElm = true
disableMtwm = true

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 {