From 21937371360b0823412baf3748b1a5630073406c Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 18 Jan 2023 17:31:24 +0800 Subject: [PATCH] 1 --- controllers/uupt_callback.go | 57 ++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/controllers/uupt_callback.go b/controllers/uupt_callback.go index 7ded7193f..a7ac445f4 100644 --- a/controllers/uupt_callback.go +++ b/controllers/uupt_callback.go @@ -1,30 +1,31 @@ package controllers -import ( - "git.rosy.net.cn/baseapi/platformapi/uuptapi" - "git.rosy.net.cn/jx-callback/globals/api" - "github.com/astaxie/beego/server/web" - "net/http" -) - -type UuPtController struct { - web.Controller -} - -//运单状态回调 -func (c *UuPtController) UuWaybillCallback() { - if c.Ctx.Input.Method() == http.MethodPost { - resp, callbackResponse := api.UuAPI.WaybillCallback(c.Ctx.Request) - if callbackResponse.ReturnCode == uuptapi.ReturnFail { - c.Data["code"] = callbackResponse - c.ServeJSON() - return - } - - //callbackResponse=uuptapi. - c.Data["code"] = callbackResponse - c.ServeJSON() - } else { - c.Abort("404") - } -} +// +//import ( +// "git.rosy.net.cn/baseapi/platformapi/uuptapi" +// "git.rosy.net.cn/jx-callback/business/partner/delivery/uupt" +// "git.rosy.net.cn/jx-callback/globals/api" +// "github.com/astaxie/beego/server/web" +// "net/http" +//) +// +//type UuPtController struct { +// web.Controller +//} +// +////运单状态回调 +//func (c *UuPtController) UuWaybillCallback() { +// if c.Ctx.Input.Method() == http.MethodPost { +// resp, callbackResponse := api.UuAPI.WaybillCallback(c.Ctx.Request) +// if callbackResponse.ReturnCode == uuptapi.ReturnFail { +// c.Data["code"] = callbackResponse +// c.ServeJSON() +// return +// } +// callbackResponse = uupt.OnWaybillMsg(resp) +// c.Data["code"] = callbackResponse +// c.ServeJSON() +// } else { +// c.Abort("404") +// } +//}