- 将URL信息放到配置文件中
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"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"
|
||||
)
|
||||
@@ -18,7 +19,7 @@ func (c *EbaiController) Msg() {
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = ebai.OnCallbackMsg(obj)
|
||||
}
|
||||
if callbackResponse == nil {
|
||||
if callbackResponse == nil || globals.IsCallbackAlwaysReturnSuccess() {
|
||||
callbackResponse = api.EbaiAPI.Err2CallbackResponse(obj.Cmd, nil, nil)
|
||||
}
|
||||
c.Data["json"] = callbackResponse
|
||||
|
||||
Reference in New Issue
Block a user