From 4a92d2f67199d655ea44215f15dd00eade4e0ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 29 Aug 2023 15:08:09 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/order.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformapi/mtwmapi/order.go b/platformapi/mtwmapi/order.go index 6e94b8da..53ff01c5 100644 --- a/platformapi/mtwmapi/order.go +++ b/platformapi/mtwmapi/order.go @@ -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"]) }