Browse Source

test

master
huangjiajun 1 year ago
parent
commit
138d4ea114
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      jingtuitui/jingtuitui.go
  2. +2
    -2
      zhimeng/jd.go

+ 1
- 1
jingtuitui/jingtuitui.go View File

@@ -30,7 +30,7 @@ func JingtuituiGetCircleList(params map[string]string) []map[string]string {
"coupon": zhios_third_party_utils.AnyToString(v.GoodsInfo.DiscountPrice), "coupon": zhios_third_party_utils.AnyToString(v.GoodsInfo.DiscountPrice),
"commission_rate": zhios_third_party_utils.AnyToString(v.GoodsInfo.CommissionShare), "commission_rate": zhios_third_party_utils.AnyToString(v.GoodsInfo.CommissionShare),
"commission": zhios_third_party_utils.Float64ToStr(zhios_third_party_utils.AnyToFloat64(v.GoodsInfo.FinalPrice) * (zhios_third_party_utils.AnyToFloat64(v.GoodsInfo.CommissionShare) / 100)), "commission": zhios_third_party_utils.Float64ToStr(zhios_third_party_utils.AnyToFloat64(v.GoodsInfo.FinalPrice) * (zhios_third_party_utils.AnyToFloat64(v.GoodsInfo.CommissionShare) / 100)),
"pvd": md.PVD_JD,
"pvd": md.PVD_JDS,
"share_content": v.CircleContent[0], "share_content": v.CircleContent[0],
} }
goods = append(goods, tmp) goods = append(goods, tmp)


+ 2
- 2
zhimeng/jd.go View File

@@ -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
} }

Loading…
Cancel
Save