This commit is contained in:
邹宗楠
2023-08-29 15:08:09 +08:00
parent dfb3e22c93
commit 4a92d2f671

View File

@@ -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"])
}