删除打印

This commit is contained in:
邹宗楠
2022-04-11 09:11:46 +08:00
parent f4d436e941
commit 0f5ddd135b
3 changed files with 0 additions and 12 deletions

View File

@@ -1,7 +1,6 @@
package controllers
import (
"fmt"
"git.rosy.net.cn/jx-callback/business/partner/delivery/fn"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego/server/web"
@@ -16,10 +15,7 @@ type FnController struct {
// 门店回掉
func (c *FnController) FnStore() {
if c.Ctx.Input.Method() == http.MethodPost {
fmt.Println("开始回调门店回掉==========================")
msg, callbackResponse := api.FnAPI.GetChainstoreStatusNotify(c.Ctx.Request)
fmt.Println("开始回调门店回掉==========================msg", msg)
fmt.Println("开始回调门店回掉==========================callbackResponse", callbackResponse)
if callbackResponse.Code == -1 {
c.Data["code"] = callbackResponse
c.ServeJSON()
@@ -37,10 +33,7 @@ func (c *FnController) FnStore() {
// 订单状态
func (c *FnController) FnOrder() {
if c.Ctx.Input.Method() == http.MethodPost {
fmt.Println("开始回调订单状态==========================")
msg, callbackResponse := api.FnAPI.GetChainOrderStatusNotify(c.Ctx.Request)
fmt.Println("开始回调订单状态==========================msg", msg)
fmt.Println("开始回调订单状态==========================callbackResponse", callbackResponse)
if callbackResponse.Code == -1 {
c.Data["code"] = callbackResponse
c.ServeJSON()
@@ -59,10 +52,7 @@ func (c *FnController) FnOrder() {
// 异常回调
func (c *FnController) FnAbnormal() {
if c.Ctx.Input.Method() == http.MethodPost {
fmt.Println("开始回调异常回调==========================")
msg, callbackResponse := api.FnAPI.GetChainAbnormaltatusNotify(c.Ctx.Request)
fmt.Println("开始回调异常回调==========================msg", msg)
fmt.Println("开始回调异常回调==========================callbackResponse", callbackResponse)
if callbackResponse.Code == -1 {
c.Data["json"] = callbackResponse
c.ServeJSON()