This commit is contained in:
邹宗楠
2023-05-15 09:31:33 +08:00
parent de25d3d9f7
commit 919368f70e
10 changed files with 24 additions and 10 deletions

View File

@@ -60,8 +60,8 @@ func (a *API) PreCreateByShopFn(basicParams *PreCreateOrder) (deliveryFee, baseD
if v.IsValid != 1 {
continue
}
deliveryFeeFn = v.ActualDeliveryAmountCent
baseDeliveryFeeFn = v.TotalDeliveryAmountCent
deliveryFeeFn = v.ActualDeliveryAmountCent // 优惠后
baseDeliveryFeeFn = v.TotalDeliveryAmountCent // 原始配送费
}
// 异常检测
@@ -206,6 +206,8 @@ func (a *API) QueryOrder(partnerOrderCode string) (result *GetOrderDetailRes, er
if err := json.Unmarshal([]byte(data["business_data"].(string)), &fnResult); err != nil {
return nil, err
}
fnResult.OrderActualAmountCent += int64(utils.WayBillDeliveryMarkUp)
fnResult.OrderTotalAmountCent += int64(utils.WayBillDeliveryMarkUp)
return fnResult, nil
}