1
This commit is contained in:
@@ -100,8 +100,6 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
|
|||||||
switch riderInfo.LogisticsStatus {
|
switch riderInfo.LogisticsStatus {
|
||||||
case 5: // 呼叫骑手
|
case 5: // 呼叫骑手
|
||||||
riderInfo.LogisticsStatus = 0
|
riderInfo.LogisticsStatus = 0
|
||||||
riderInfo.CourierName = ""
|
|
||||||
riderInfo.CourierPhone = ""
|
|
||||||
riderInfo.OpCode = tiktok_api.TiktokLogisticsStatusCALLRIDER
|
riderInfo.OpCode = tiktok_api.TiktokLogisticsStatusCALLRIDER
|
||||||
case 12: // 骑手接单
|
case 12: // 骑手接单
|
||||||
riderInfo.LogisticsStatus = 12
|
riderInfo.LogisticsStatus = 12
|
||||||
@@ -119,6 +117,8 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
|
|||||||
riderInfo.LogisticsStatus = 40
|
riderInfo.LogisticsStatus = 40
|
||||||
riderInfo.OpCode = tiktok_api.TiktokLogisticsDELIVERED
|
riderInfo.OpCode = tiktok_api.TiktokLogisticsDELIVERED
|
||||||
case 115: // 取消
|
case 115: // 取消
|
||||||
|
riderInfo.CourierName = ""
|
||||||
|
riderInfo.CourierPhone = ""
|
||||||
riderInfo.LogisticsStatus = 100
|
riderInfo.LogisticsStatus = 100
|
||||||
riderInfo.OpCode = tiktok_api.TiktokLogisticsCANCELDELIVERY
|
riderInfo.OpCode = tiktok_api.TiktokLogisticsCANCELDELIVERY
|
||||||
case 22, 0, 120: // 异常配送
|
case 22, 0, 120: // 异常配送
|
||||||
@@ -127,6 +127,11 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
|
|||||||
default:
|
default:
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if v.VendorID == model.VendorIDDD && (riderInfo.LogisticsStatus == 100 || riderInfo.LogisticsStatus == 0 || riderInfo.LogisticsStatus == 20) {
|
||||||
|
riderInfo.CourierName = ""
|
||||||
|
riderInfo.CourierPhone = ""
|
||||||
|
}
|
||||||
if riderInfo.LogisticsStatus != 22 && riderInfo.LogisticsStatus != 120 && riderInfo.LogisticsStatus != 0 {
|
if riderInfo.LogisticsStatus != 22 && riderInfo.LogisticsStatus != 120 && riderInfo.LogisticsStatus != 0 {
|
||||||
riderInfo.LogisticsContext += fmt.Sprintf("[%s:%s]", riderInfo.CourierName, riderInfo.CourierPhone)
|
riderInfo.LogisticsContext += fmt.Sprintf("[%s:%s]", riderInfo.CourierName, riderInfo.CourierPhone)
|
||||||
}
|
}
|
||||||
@@ -155,10 +160,6 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
|
|||||||
case model.VendorIDWSC: // 微盟微商城
|
case model.VendorIDWSC: // 微盟微商城
|
||||||
case model.VendorIDDD: // 抖店小时达
|
case model.VendorIDDD: // 抖店小时达
|
||||||
// 呼叫骑手的时候推送发货
|
// 呼叫骑手的时候推送发货
|
||||||
if riderInfo.CourierPhone == "18048531223" {
|
|
||||||
riderInfo.CourierPhone = ""
|
|
||||||
riderInfo.CourierPhone = ""
|
|
||||||
}
|
|
||||||
// 抖店由于发配送时运单id已经固定了,我们系统在重新发货,或者运单号发生改变时去推送信息时.抖店只识别第一个运单号所以在这儿修改成发单时的第一个运单号!
|
// 抖店由于发配送时运单id已经固定了,我们系统在重新发货,或者运单号发生改变时去推送信息时.抖店只识别第一个运单号所以在这儿修改成发单时的第一个运单号!
|
||||||
riderInfo.ThirdCarrierOrderId = riderInfo.OrderId
|
riderInfo.ThirdCarrierOrderId = riderInfo.OrderId
|
||||||
paramsMap := utils.Struct2Map(riderInfo, "", true)
|
paramsMap := utils.Struct2Map(riderInfo, "", true)
|
||||||
|
|||||||
Reference in New Issue
Block a user