1
This commit is contained in:
@@ -579,11 +579,12 @@ func (a *API) OrderLogisticsFee(orderID int64) (payFee float64, err error) {
|
||||
if utils.Interface2Int64WithDefault(data["logistics_status"], 0) == utils.Str2Int64WithDefault(WaybillStatusCanceled, 0) {
|
||||
if utils.Interface2Int64WithDefault(data["dispatcher_reach_poi_time"], 0) != 0 {
|
||||
return 2, nil
|
||||
} else if utils.Interface2Int64WithDefault(data["send_time"], 0) != 0 {
|
||||
return utils.TryInterface2Float64(data["pay_amount"])
|
||||
} else {
|
||||
return 0, nil
|
||||
}
|
||||
}
|
||||
|
||||
return utils.TryInterface2Float64(data["pay_amount"])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user