- fix calculateOrderDeliveryFee bug for weight.

This commit is contained in:
gazebo
2018-09-05 22:48:15 +08:00
parent 1ed1838802
commit c52e8deade
4 changed files with 7 additions and 7 deletions

View File

@@ -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,
}