diff --git a/controllers/fn_callback.go b/controllers/fn_callback.go index 9784329b6..df004c5c5 100644 --- a/controllers/fn_callback.go +++ b/controllers/fn_callback.go @@ -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