diff --git a/haodanku/haodanku.go b/haodanku/haodanku.go index 7c3a366..60fcfab 100644 --- a/haodanku/haodanku.go +++ b/haodanku/haodanku.go @@ -25,6 +25,7 @@ func HaodankuFriendsCircleItems(params map[string]string) []map[string]string { for _, v := range oldGoods { v.Comment.CopyContent = strings.ReplaceAll(v.Comment.CopyContent, "
", "\r\n") var tmp = map[string]string{ + "img_list": zhios_third_party_utils.SerializeStr(v.Image), "gid": v.Items.Itemid, "title": v.Items.Itemshorttitle, "img": v.Items.Itempic, diff --git a/jingtuitui/jingtuitui.go b/jingtuitui/jingtuitui.go index 866038b..85dea75 100644 --- a/jingtuitui/jingtuitui.go +++ b/jingtuitui/jingtuitui.go @@ -21,6 +21,7 @@ func JingtuituiGetCircleList(params map[string]string) []map[string]string { json.Unmarshal([]byte(data), &oldGoods) for _, v := range oldGoods { var tmp = map[string]string{ + "img_list": zhios_third_party_utils.SerializeStr(v.ImgInfo), "gid": zhios_third_party_utils.AnyToString(v.GoodsID), "title": v.GoodsInfo.GoodsName, "img": v.GoodsInfo.GoodsImg, diff --git a/taobao/taobao.go b/taobao/taobao.go index 3dc54a1..c6c383f 100644 --- a/taobao/taobao.go +++ b/taobao/taobao.go @@ -62,7 +62,17 @@ func TaoBaoSearchList(eg *xorm.Engine, dbName, Platform string, AccTaobaoShareId list, err := sdk.TaoBaoSearchList(postData) if list != nil { for _, v := range *list { + imgList := make([]string, 0) + if len(v.SmallImages.String) == 0 { + imgList = append(imgList, v.PictURL) + } else { + for _, v1 := range v.SmallImages.String { + imgList = append(imgList, v1) + + } + } var tmp = map[string]string{ + "img_list": zhios_third_party_utils.SerializeStr(imgList), "gid": zhios_third_party_utils.AnyToString(v.ItemID), "title": v.Title, "img": v.PictURL, diff --git a/tik_tok/tik_tok_goods.go b/tik_tok/tik_tok_goods.go index cd2abd9..97838bd 100644 --- a/tik_tok/tik_tok_goods.go +++ b/tik_tok/tik_tok_goods.go @@ -23,6 +23,7 @@ func TikTokSearchGoods(eg *xorm.Engine, dbName string, params map[string]interfa if list != nil { for _, v := range *list { var tmp = map[string]string{ + "img_list": zhios_third_party_utils.SerializeStr(v.Imgs), "gid": v.GoodsID, "title": v.GoodsTitle, "img": v.GoodsImg, diff --git a/zhimeng/jd.go b/zhimeng/jd.go index b22d77a..264f811 100644 --- a/zhimeng/jd.go +++ b/zhimeng/jd.go @@ -20,6 +20,7 @@ func JdGoods(param map[string]interface{}) []map[string]string { } for _, v := range tmp.Data { var tmp = map[string]string{ + "img_list": zhios_third_party_utils.SerializeStr(v.ImgList), "gid": v.Gid, "title": v.GoodsTitle, "img": v.GoodsImg, diff --git a/zhimeng/kuaishou_goods.go b/zhimeng/kuaishou_goods.go index c8ee232..8e87eb2 100644 --- a/zhimeng/kuaishou_goods.go +++ b/zhimeng/kuaishou_goods.go @@ -40,6 +40,7 @@ func KuaiShouGoods(tikTokArgs map[string]interface{}) []map[string]string { } for _, v := range tmp.Data { var tmp = map[string]string{ + "img_list": zhios_third_party_utils.SerializeStr(v.Imgs), "gid": v.GoodsID, "title": v.GoodsTitle, "img": v.GoodsImg,