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