|
|
@@ -29,7 +29,7 @@ func JdGoods(param map[string]interface{}) []map[string]string { |
|
|
|
"coupon": zhios_third_party_utils.IntToStr(v.CouponPrice), |
|
|
|
"commission_rate": zhios_third_party_utils.AnyToString(v.CommissionRate), |
|
|
|
"commission": zhios_third_party_utils.Float64ToStr((v.WlGoodsPrice - float64(v.CouponPrice)) * (zhios_third_party_utils.AnyToFloat64(v.CommissionRate) / 100)), |
|
|
|
"pvd": md.PVD_JD, |
|
|
|
"pvd": md.PVD_JDS, |
|
|
|
"share_content": "", |
|
|
|
} |
|
|
|
goods = append(goods, tmp) |
|
|
@@ -40,6 +40,6 @@ func JdGoods(param map[string]interface{}) []map[string]string { |
|
|
|
// NewZhiMengJingDongSDK is constructor |
|
|
|
func NewZhiMengJingDongSDK() *SDK { |
|
|
|
jd := &SDK{} |
|
|
|
jd.Init(md.PVD_JD) |
|
|
|
jd.Init(md.PVD_JDS) |
|
|
|
return jd |
|
|
|
} |