- update waybill courier info only the value is not empty.
This commit is contained in:
@@ -74,8 +74,10 @@ func (w *OrderManager) OnWaybillStatusChanged(bill *model.Waybill) (err error) {
|
|||||||
if bill.Status == model.WaybillStatusAccepted {
|
if bill.Status == model.WaybillStatusAccepted {
|
||||||
addParams["desired_fee"] = bill.DesiredFee
|
addParams["desired_fee"] = bill.DesiredFee
|
||||||
}
|
}
|
||||||
addParams["courier_name"] = bill.CourierName
|
if bill.CourierMobile != "" {
|
||||||
addParams["courier_mobile"] = bill.CourierMobile
|
addParams["courier_name"] = bill.CourierName
|
||||||
|
addParams["courier_mobile"] = bill.CourierMobile
|
||||||
|
}
|
||||||
} else if bill.Status >= model.WaybillStatusEndBegin {
|
} else if bill.Status >= model.WaybillStatusEndBegin {
|
||||||
addParams["waybill_finished_at"] = bill.StatusTime
|
addParams["waybill_finished_at"] = bill.StatusTime
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user