1
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user