Bläddra i källkod

拼多多联盟

master
huangjiajun 7 månader sedan
förälder
incheckning
929783d784
2 ändrade filer med 6 tillägg och 3 borttagningar
  1. +3
    -0
      md/cps_pdd/goods.go
  2. +3
    -3
      pdd_union/goods.go

+ 3
- 0
md/cps_pdd/goods.go Visa fil

@@ -3,6 +3,7 @@ package cps_pdd
type RecommendGoods struct {
GoodsBasicDetailResponse struct {
List []struct {
GoodsId int64 `json:"goods_id"`
ActivityPromotionRate int `json:"activity_promotion_rate"`
ActivityTags []int `json:"activity_tags"`
BrandName string `json:"brand_name"`
@@ -61,6 +62,7 @@ type RecommendGoods struct {
type SearchGoods struct {
GoodsSearchResponse struct {
GoodsList []struct {
GoodsId int64 `json:"goods_id"`
ActivityPromotionRate int `json:"activity_promotion_rate"`
ActivityTags []int `json:"activity_tags"`
ActivityType int `json:"activity_type"`
@@ -133,6 +135,7 @@ type SearchGoods struct {
type GoodsDetail struct {
GoodsDetailResponse struct {
GoodsDetails []struct {
GoodsId int64 `json:"goods_id"`
ActivityPromotionRate int `json:"activity_promotion_rate"`
ActivityTags []int `json:"activity_tags"`
BrandName string `json:"brand_name"`


+ 3
- 3
pdd_union/goods.go Visa fil

@@ -14,7 +14,7 @@ func GetRecommendGoods(keyArr map[string]string, param map[string]interface{}) [
data := make([]map[string]string, 0)
for _, v := range res.GoodsBasicDetailResponse.List {
tmp := make(map[string]string)
tmp["gid"] = v.GoodsSign
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId)
tmp["goods_title"] = v.GoodsName
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10)
tmp["coupon_start_time"] = "0"
@@ -56,7 +56,7 @@ func GetSearchGoods(keyArr map[string]string, param map[string]interface{}) []ma
data := make([]map[string]string, 0)
for _, v := range res.GoodsSearchResponse.GoodsList {
tmp := make(map[string]string)
tmp["gid"] = v.GoodsSign
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId)
tmp["goods_title"] = v.GoodsName
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10)
tmp["coupon_start_time"] = "0"
@@ -97,7 +97,7 @@ func GetGoodsDetail(keyArr map[string]string, param map[string]interface{}) map[
data := make(map[string]interface{})
for _, v := range res.GoodsDetailResponse.GoodsDetails {
tmp := make(map[string]interface{})
tmp["gid"] = v.GoodsSign
tmp["gid"] = zhios_third_party_utils.Int64ToStr(v.GoodsId)
tmp["goods_title"] = v.GoodsName
tmp["commission"] = zhios_third_party_utils.Float64ToStr(float64(v.PromotionRate) / 10)
tmp["coupon_start_time"] = "0"


Laddar…
Avbryt
Spara