Browse Source

唯品会

master
huangjiajun 4 months ago
parent
commit
799ac95cbd
2 changed files with 18 additions and 12 deletions
  1. +1
    -0
      md/wph/goods.go
  2. +17
    -12
      wph/goods.go

+ 1
- 0
md/wph/goods.go View File

@@ -7,6 +7,7 @@ type WphGoods struct {
GoodsDesc string `json:"goods_desc"`
GoodsImg string `json:"goods_img"`
ImgList []string `json:"img_list"`
DetailImgList []string `json:"detail_img_list"`
SourceType string `json:"sourceType"`
GoodsPrice string `json:"goods_price"`
GoodsCostPrice string `json:"goods_cost_price"`


+ 17
- 12
wph/goods.go View File

@@ -25,6 +25,7 @@ func QueryWithOauth(serviceParam map[string]string, param string) []wph.WphGoods
GoodsDesc: v.GoodsDesc,
GoodsImg: v.GoodsMainPicture,
ImgList: v.GoodsCarouselPictures,
DetailImgList: v.GoodsDetailPictures,
SourceType: zhios_third_party_utils.IntToStr(v.SourceType),
GoodsPrice: v.VipPrice,
GoodsCostPrice: v.MarketPrice,
@@ -55,12 +56,14 @@ func GoodsListWithOauth(serviceParam map[string]string, param string) []wph.WphG
gid = v.GoodsId + "adCode" + v.AdCode
}
tmp := wph.WphGoods{
Gid: gid,
AdCode: v.AdCode,
GoodsTitle: v.GoodsName,
GoodsDesc: v.GoodsDesc,
GoodsImg: v.GoodsMainPicture,
ImgList: v.GoodsCarouselPictures,
Gid: gid,
AdCode: v.AdCode,
GoodsTitle: v.GoodsName,
GoodsDesc: v.GoodsDesc,
GoodsImg: v.GoodsMainPicture,
ImgList: v.GoodsCarouselPictures,
DetailImgList: v.GoodsDetailPictures,

SourceType: zhios_third_party_utils.IntToStr(v.SourceType),
GoodsPrice: v.VipPrice,
GoodsCostPrice: v.MarketPrice,
@@ -90,12 +93,14 @@ func GetByGoodsIdsWithOauth(serviceParam map[string]string, param string) []wph.
gid = v.GoodsId + "adCode" + v.AdCode
}
tmp := wph.WphGoods{
Gid: gid,
AdCode: v.AdCode,
GoodsTitle: v.GoodsName,
GoodsDesc: v.GoodsDesc,
GoodsImg: v.GoodsMainPicture,
ImgList: v.GoodsCarouselPictures,
Gid: gid,
AdCode: v.AdCode,
GoodsTitle: v.GoodsName,
GoodsDesc: v.GoodsDesc,
GoodsImg: v.GoodsMainPicture,
ImgList: v.GoodsCarouselPictures,
DetailImgList: v.GoodsDetailPictures,

SourceType: zhios_third_party_utils.IntToStr(v.SourceType),
GoodsPrice: v.VipPrice,
GoodsCostPrice: v.MarketPrice,


Loading…
Cancel
Save