修改运单推送
This commit is contained in:
@@ -176,6 +176,29 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
|
||||
default:
|
||||
continue
|
||||
}
|
||||
// 有时候运单状态改变之后但是上面的订单状态还没来得及改变,这里覆盖一下
|
||||
if wayBillStatus != model.NO {
|
||||
switch wayBillStatus {
|
||||
case 5: // 呼叫骑手
|
||||
riderInfo.LogisticsStatus = 0
|
||||
case 12: // 骑手接单
|
||||
riderInfo.LogisticsStatus = 10
|
||||
case 15: // 到店
|
||||
riderInfo.LogisticsStatus = 15
|
||||
case 20: //配送中
|
||||
riderInfo.LogisticsStatus = 20
|
||||
case 110: // 完成
|
||||
riderInfo.LogisticsStatus = 40
|
||||
case 105: // 完成
|
||||
riderInfo.LogisticsStatus = 40
|
||||
case 115: // 取消
|
||||
riderInfo.LogisticsStatus = 100
|
||||
case 22, 0, 120: // 异常配送
|
||||
riderInfo.LogisticsStatus = 22
|
||||
default:
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
storeDetail, err := dao.GetStoreDetail(db, v.JxStoreID, 0, "")
|
||||
if riderInfo.CourierPhone == "" {
|
||||
|
||||
Reference in New Issue
Block a user