- fix calculateOrderDeliveryFee bug for weight.
This commit is contained in:
@@ -112,7 +112,7 @@ func (c *DeliveryHandler) CreateWaybill(order *model.GoodsOrder, policy func(del
|
||||
// "origin_mark": model.VendorNames[order.VendorID],
|
||||
"origin_mark_no": fmt.Sprintf("%d", order.OrderSeq),
|
||||
"cargo_type": 13,
|
||||
"cargo_weight": float64(order.Weight) / 1000.0,
|
||||
"cargo_weight": jxutils.IntWeight2Float(order.Weight),
|
||||
"cargo_num": order.GoodsCount,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user