1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user