This commit is contained in:
邹宗楠
2022-03-31 17:55:35 +08:00
parent 6c73976ca7
commit 10cb275c1a

View File

@@ -19,7 +19,7 @@ func (c *FnController) FnOrder() {
msg, callbackResponse := api.FnAPI.GetChainOrderStatusNotify(c.Ctx.Request)
fmt.Println("开始回调订单状态==========================msg", msg)
fmt.Println("开始回调订单状态==========================callbackResponse", callbackResponse)
if callbackResponse.Code != 1 {
if callbackResponse.Code == -1 {
c.Data["json"] = callbackResponse
c.ServeJSON()
return
@@ -41,7 +41,7 @@ func (c *FnController) FnAbnormal() {
msg, callbackResponse := api.FnAPI.GetChainAbnormaltatusNotify(c.Ctx.Request)
fmt.Println("开始回调异常回调==========================msg", msg)
fmt.Println("开始回调异常回调==========================callbackResponse", callbackResponse)
if callbackResponse.Code != 1 {
if callbackResponse.Code == -1 {
c.Data["json"] = callbackResponse
c.ServeJSON()
return
@@ -62,7 +62,7 @@ func (c *FnController) FnStore() {
msg, callbackResponse := api.FnAPI.GetChainstoreStatusNotify(c.Ctx.Request)
fmt.Println("开始回调门店回掉==========================msg", msg)
fmt.Println("开始回调门店回掉==========================callbackResponse", callbackResponse)
if callbackResponse.Code != 1 {
if callbackResponse.Code == -1 {
c.Data["json"] = callbackResponse
c.ServeJSON()
return