- 修复取京东订单订单级优惠金额的BUG

This commit is contained in:
gazebo
2019-09-06 17:37:41 +08:00
parent f3a99cf2cd
commit 90232c2a26

View File

@@ -201,7 +201,7 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
}
order.ConsigneeLng = jxutils.StandardCoordinate2Int(originalLng)
order.ConsigneeLat = jxutils.StandardCoordinate2Int(originalLat)
discounts, _ := result["discount"].(map[string]interface{})
discounts, _ := result["discount"].([]interface{})
for _, v := range discounts {
discount := v.(map[string]interface{})
order.DiscountMoney += utils.Interface2Int64WithDefault(discount["discountPrice"], 0)