Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2023-02-06 15:59:34 +08:00
6 changed files with 90 additions and 37 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()