1
This commit is contained in:
@@ -369,7 +369,6 @@ func (c *DeliveryHandler) UpdateWaybillTip(ctx *jxcontext.Context, vendorOrgCode
|
|||||||
|
|
||||||
// OnWaybillMsg 配送状态更改回调
|
// OnWaybillMsg 配送状态更改回调
|
||||||
func OnWaybillMsg(urlIndex string, msg interface{}) (resp *sfps2.CallbackResponse) {
|
func OnWaybillMsg(urlIndex string, msg interface{}) (resp *sfps2.CallbackResponse) {
|
||||||
globals.SugarLogger.Debugf("fdkasifq msg=%s", utils.Format4Output(msg, false))
|
|
||||||
order := GetWaybillByStatus(urlIndex, msg)
|
order := GetWaybillByStatus(urlIndex, msg)
|
||||||
//多次取消回调只取第一次
|
//多次取消回调只取第一次
|
||||||
tempStatus := utils.Str2Int(order.VendorStatus)
|
tempStatus := utils.Str2Int(order.VendorStatus)
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ type SFPSController struct {
|
|||||||
func (c *SFPSController) SfOrder() {
|
func (c *SFPSController) SfOrder() {
|
||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
msg, callbackResponse := api.SfPsAPI.GetCallbackUrlIndex(c.Ctx.Request)
|
msg, callbackResponse := api.SfPsAPI.GetCallbackUrlIndex(c.Ctx.Request)
|
||||||
fmt.Printf("SfOrder msg=%s", utils.Format4Output(msg, false))
|
|
||||||
if callbackResponse.ErrorCode == -1 {
|
if callbackResponse.ErrorCode == -1 {
|
||||||
c.Data["data"] = -1
|
c.Data["data"] = -1
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
|
|||||||
Reference in New Issue
Block a user