This commit is contained in:
邹宗楠
2025-02-12 16:35:09 +08:00
parent b2cc8bfb64
commit bb544c41dc

View File

@@ -420,6 +420,8 @@ func (c *DeliveryHandler) CancelWaybill(bill *model.Waybill, cancelReasonID int,
default:
cancelReasonID = dadaapi.ReasonIDOther
}
key, appSecret, sourceID := api.DadaAPI.GetAppId()
globals.SugarLogger.Debugf("------------dada :=key: %s,appSecret :%s,sourceID :%s", key, appSecret, sourceID)
_, err = api.DadaAPI.CancelOrder(bill.VendorOrderID, cancelReasonID, cancelReason)
return err
}