- handle field missing in jd.setOrederDetailFee

This commit is contained in:
gazebo
2019-02-16 18:07:45 +08:00
parent 2315a5cf85
commit c598f54e6a

View File

@@ -168,9 +168,9 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
}
func setOrederDetailFee(result map[string]interface{}, order *model.GoodsOrder) {
order.BoxFee = utils.MustInterface2Int64(result["packagingMoney"])
order.BoxFee = utils.Interface2Int64WithDefault(result["packagingMoney"], 0)
order.PlatformFeeRate = model.JdPlatformFeeRate
order.BillStoreFreightFee = utils.MustInterface2Int64(result["merchantPaymentDistanceFreightMoney"]) + utils.MustInterface2Int64(result["tips"])
order.BillStoreFreightFee = utils.Interface2Int64WithDefault(result["merchantPaymentDistanceFreightMoney"], 0) + utils.Interface2Int64WithDefault(result["tips"], 0)
}
//