This commit is contained in:
邹宗楠
2023-04-28 18:18:00 +08:00
parent fff6007567
commit 3699a1be16

View File

@@ -98,10 +98,6 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
riderInfo.CourierName = "门店老板" riderInfo.CourierName = "门店老板"
riderInfo.LogisticsProviderCode = "10017" riderInfo.LogisticsProviderCode = "10017"
riderInfo.LogisticsStatus = v.Status riderInfo.LogisticsStatus = v.Status
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), v.JxStoreID, 0, "")
if err != nil {
riderInfo.CourierPhone = storeDetail.Tel1
}
} }
switch riderInfo.LogisticsStatus { switch riderInfo.LogisticsStatus {
@@ -141,6 +137,18 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
if riderInfo.Latitude == "" { if riderInfo.Latitude == "" {
riderInfo.Latitude = utils.Float64ToStr(utils.Int2Float64(v.ConsigneeLat) / 1000000) riderInfo.Latitude = utils.Float64ToStr(utils.Int2Float64(v.ConsigneeLat) / 1000000)
} }
if riderInfo.CourierPhone == "" {
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), v.JxStoreID, 0, "")
if err != nil {
riderInfo.CourierPhone = storeDetail.Tel1
}
riderInfo.CourierName = "老板"
}
if riderInfo.CourierPhone == "" {
riderInfo.CourierName = "石锋"
riderInfo.CourierPhone = "18048531223"
}
// 目前只推送美团骑手信息 // 目前只推送美团骑手信息
switch v.VendorID { switch v.VendorID {
case model.VendorIDMTWM: // 美团订单 case model.VendorIDMTWM: // 美团订单