diff --git a/pdd_union/order.go b/pdd_union/order.go index dc25918..149f231 100644 --- a/pdd_union/order.go +++ b/pdd_union/order.go @@ -21,7 +21,7 @@ func GetOrder(keyArr map[string]string, param map[string]interface{}) ([]map[str tmp["oid"] = v.OrderSn tmp["gid"] = v.GoodsSign tmp["goods_title"] = v.GoodsName - tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionAmount) / 100) + tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionAmount)/100 + float64(v.SubsidyAmount)/100) tmp["commission_rate"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10) tmp["goods_price"] = zhios_third_party_utils.Float64ToStr(float64(v.GoodsPrice) / 100) tmp["payment"] = zhios_third_party_utils.Float64ToStr(float64(v.OrderAmount) / 100)