This commit is contained in:
邹宗楠
2022-05-23 10:36:44 +08:00
parent 8fb81f6522
commit 4b140e830c
6 changed files with 8 additions and 14 deletions

View File

@@ -95,7 +95,7 @@ func (c *DeliveryHandler) onWaybillMsg(msg *dadaapi.CallbackMsg) (retVal *dadaap
order.Status = model.WaybillStatusUnknown
}
err := dadaapi.Err2CallbackResponse(partner.CurOrderManager.OnWaybillStatusChanged(order), utils.Int2Str(order.Status))
delivery.GetOrderRiderInfoToPlatform(order.VendorOrderID) // 骑手位置更新
defer delivery.GetOrderRiderInfoToPlatform(order.VendorOrderID) // 骑手位置更新
return err
}
@@ -459,7 +459,7 @@ func (c *DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeiso
case 4: // 完成
result.LogisticsStatus = model.WaybillStatusDelivered
case 5: // 取消
result.LogisticsStatus = model.WaybillStatusAcceptCanceled
result.LogisticsStatus = model.WaybillStatusCanceled
case 9: // 配送异常
result.LogisticsStatus = model.WaybillStatusDeliverFailed
default: