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