This commit is contained in:
邹宗楠
2022-04-02 16:21:10 +08:00
parent a3c4c6d87f
commit f8312c5656

View File

@@ -115,6 +115,11 @@ func (c *DeliveryHandler) CreateWaybill(order *model.GoodsOrder, maxDeliveryFee
OutShopCode: utils.Int2Str(order.JxStoreID),
ChainStoreId: "",
}
// 重量超标减少配送费
weight := 4.9500
if utils.Int2Float64(order.Weight)/1000 >= weight {
parameter.GoodsWeight = weight
}
var goodsList []*fnpsapi.GoodsItemsList
for _, v := range order.Skus {
@@ -169,7 +174,7 @@ func (c *DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInf
OutShopCode: utils.Int2Str(order.JxStoreID),
}
// 重量超标减少配送费
weight := 5.000
weight := 4.9500
if utils.Int2Float64(order.Weight)/1000 >= weight {
preCreateOrder.GoodsWeight = weight
}