1
This commit is contained in:
@@ -1,30 +1,31 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
//
|
||||||
"git.rosy.net.cn/baseapi/platformapi/uuptapi"
|
//import (
|
||||||
"git.rosy.net.cn/jx-callback/globals/api"
|
// "git.rosy.net.cn/baseapi/platformapi/uuptapi"
|
||||||
"github.com/astaxie/beego/server/web"
|
// "git.rosy.net.cn/jx-callback/business/partner/delivery/uupt"
|
||||||
"net/http"
|
// "git.rosy.net.cn/jx-callback/globals/api"
|
||||||
)
|
// "github.com/astaxie/beego/server/web"
|
||||||
|
// "net/http"
|
||||||
type UuPtController struct {
|
//)
|
||||||
web.Controller
|
//
|
||||||
}
|
//type UuPtController struct {
|
||||||
|
// web.Controller
|
||||||
//运单状态回调
|
//}
|
||||||
func (c *UuPtController) UuWaybillCallback() {
|
//
|
||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
////运单状态回调
|
||||||
resp, callbackResponse := api.UuAPI.WaybillCallback(c.Ctx.Request)
|
//func (c *UuPtController) UuWaybillCallback() {
|
||||||
if callbackResponse.ReturnCode == uuptapi.ReturnFail {
|
// if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
c.Data["code"] = callbackResponse
|
// resp, callbackResponse := api.UuAPI.WaybillCallback(c.Ctx.Request)
|
||||||
c.ServeJSON()
|
// if callbackResponse.ReturnCode == uuptapi.ReturnFail {
|
||||||
return
|
// c.Data["code"] = callbackResponse
|
||||||
}
|
// c.ServeJSON()
|
||||||
|
// return
|
||||||
//callbackResponse=uuptapi.
|
// }
|
||||||
c.Data["code"] = callbackResponse
|
// callbackResponse = uupt.OnWaybillMsg(resp)
|
||||||
c.ServeJSON()
|
// c.Data["code"] = callbackResponse
|
||||||
} else {
|
// c.ServeJSON()
|
||||||
c.Abort("404")
|
// } else {
|
||||||
}
|
// c.Abort("404")
|
||||||
}
|
// }
|
||||||
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user