This commit is contained in:
richboo111
2023-02-06 13:54:39 +08:00
parent a059ba6bdf
commit 1c532043c2
3 changed files with 10 additions and 7 deletions

View File

@@ -1,13 +1,12 @@
package controllers
import (
"net/http"
"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"
)
type UuPtController struct {
@@ -18,7 +17,6 @@ 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()