1
This commit is contained in:
@@ -160,6 +160,7 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *mtwmapi.CallbackMsg) (retVal *mtwma
|
|||||||
|
|
||||||
// 新订单平台自动同意退单,某一些情况下产生的运单没退!这个处理一下!
|
// 新订单平台自动同意退单,某一些情况下产生的运单没退!这个处理一下!
|
||||||
//if refundData.NotifyType == mtwmapi.MsgTypeOrderAgree && (msg.Cmd == mtwmapi.MsgTypeOrderRefund || msg.Cmd == mtwmapi.MsgTypeOrderAgree) {
|
//if refundData.NotifyType == mtwmapi.MsgTypeOrderAgree && (msg.Cmd == mtwmapi.MsgTypeOrderRefund || msg.Cmd == mtwmapi.MsgTypeOrderAgree) {
|
||||||
|
// partner.CurOrderManager.+
|
||||||
// defsch.FixedScheduler.CancelAll3rdWaybills(jxcontext.AdminCtx, orderStatus.RefVendorOrderID, orderStatus.VendorID, true)
|
// defsch.FixedScheduler.CancelAll3rdWaybills(jxcontext.AdminCtx, orderStatus.RefVendorOrderID, orderStatus.VendorID, true)
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -984,15 +984,17 @@ func (c *PurchaseHandler) CancelLogisticsByWmOrderId(order *model.GoodsOrder, re
|
|||||||
}
|
}
|
||||||
|
|
||||||
// OrderLogisticsStatus 获取订单配送状态
|
// OrderLogisticsStatus 获取订单配送状态
|
||||||
func (c *PurchaseHandler) OrderLogisticsStatus(orderId string) (*utils.RiderInfo, error) {
|
func (c *PurchaseHandler) OrderLogisticsStatus(orderId string) (data *utils.RiderInfo, err error) {
|
||||||
orderInfo, err := dao.GetSimpleOrder(dao.GetDB(), orderId)
|
orderInfo, err := dao.GetSimpleOrder(dao.GetDB(), orderId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.New("获取本地门店账号信息失败,请重试")
|
data.LogisticsStatus = 0
|
||||||
|
return data, errors.New("获取本地门店账号信息失败,请重试")
|
||||||
}
|
}
|
||||||
|
|
||||||
waybill, err := getAPI(orderInfo.VendorOrgCode, 0, "").GetShipmentInfo(utils.Str2Int64(orderInfo.VendorOrderID), 0, tiktokShop.ShipmentTypeInvoice)
|
waybill, err := getAPI(orderInfo.VendorOrgCode, 0, "").GetShipmentInfo(utils.Str2Int64(orderInfo.VendorOrderID), 0, tiktokShop.ShipmentTypeInvoice)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
data.LogisticsStatus = 0
|
||||||
|
return data, err
|
||||||
}
|
}
|
||||||
|
|
||||||
result := &utils.RiderInfo{
|
result := &utils.RiderInfo{
|
||||||
|
|||||||
Reference in New Issue
Block a user