This commit is contained in:
richboo111
2023-02-03 14:58:14 +08:00
parent a3e3222afb
commit 8822492924

View File

@@ -2,7 +2,9 @@ package controllers
import (
"git.rosy.net.cn/baseapi/platformapi/uuptapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/partner/delivery/uupt"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego/server/web"
"net/http"
@@ -16,6 +18,7 @@ type UuPtController struct {
func (c *UuPtController) UuWaybillCallback() {
if c.Ctx.Input.Method() == http.MethodPost {
resp, callbackResponse := api.UuAPI.WaybillCallback(c.Ctx.Request)
globals.SugarLogger.Debugf("UuWaybillCallback resp============%s", utils.Format4Output(resp, false))
if callbackResponse.ReturnCode == uuptapi.ReturnFail {
c.Data["code"] = callbackResponse
c.ServeJSON()