@@ -25,6 +25,7 @@ func HaodankuFriendsCircleItems(params map[string]string) []map[string]string { | |||||
for _, v := range oldGoods { | for _, v := range oldGoods { | ||||
v.Comment.CopyContent = strings.ReplaceAll(v.Comment.CopyContent, "<br>", "\r\n") | v.Comment.CopyContent = strings.ReplaceAll(v.Comment.CopyContent, "<br>", "\r\n") | ||||
var tmp = map[string]string{ | var tmp = map[string]string{ | ||||
"img_list": zhios_third_party_utils.SerializeStr(v.Image), | |||||
"gid": v.Items.Itemid, | "gid": v.Items.Itemid, | ||||
"title": v.Items.Itemshorttitle, | "title": v.Items.Itemshorttitle, | ||||
"img": v.Items.Itempic, | "img": v.Items.Itempic, | ||||
@@ -21,6 +21,7 @@ func JingtuituiGetCircleList(params map[string]string) []map[string]string { | |||||
json.Unmarshal([]byte(data), &oldGoods) | json.Unmarshal([]byte(data), &oldGoods) | ||||
for _, v := range oldGoods { | for _, v := range oldGoods { | ||||
var tmp = map[string]string{ | var tmp = map[string]string{ | ||||
"img_list": zhios_third_party_utils.SerializeStr(v.ImgInfo), | |||||
"gid": zhios_third_party_utils.AnyToString(v.GoodsID), | "gid": zhios_third_party_utils.AnyToString(v.GoodsID), | ||||
"title": v.GoodsInfo.GoodsName, | "title": v.GoodsInfo.GoodsName, | ||||
"img": v.GoodsInfo.GoodsImg, | "img": v.GoodsInfo.GoodsImg, | ||||
@@ -62,7 +62,17 @@ func TaoBaoSearchList(eg *xorm.Engine, dbName, Platform string, AccTaobaoShareId | |||||
list, err := sdk.TaoBaoSearchList(postData) | list, err := sdk.TaoBaoSearchList(postData) | ||||
if list != nil { | if list != nil { | ||||
for _, v := range *list { | 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{ | var tmp = map[string]string{ | ||||
"img_list": zhios_third_party_utils.SerializeStr(imgList), | |||||
"gid": zhios_third_party_utils.AnyToString(v.ItemID), | "gid": zhios_third_party_utils.AnyToString(v.ItemID), | ||||
"title": v.Title, | "title": v.Title, | ||||
"img": v.PictURL, | "img": v.PictURL, | ||||
@@ -23,6 +23,7 @@ func TikTokSearchGoods(eg *xorm.Engine, dbName string, params map[string]interfa | |||||
if list != nil { | if list != nil { | ||||
for _, v := range *list { | for _, v := range *list { | ||||
var tmp = map[string]string{ | var tmp = map[string]string{ | ||||
"img_list": zhios_third_party_utils.SerializeStr(v.Imgs), | |||||
"gid": v.GoodsID, | "gid": v.GoodsID, | ||||
"title": v.GoodsTitle, | "title": v.GoodsTitle, | ||||
"img": v.GoodsImg, | "img": v.GoodsImg, | ||||
@@ -20,6 +20,7 @@ func JdGoods(param map[string]interface{}) []map[string]string { | |||||
} | } | ||||
for _, v := range tmp.Data { | for _, v := range tmp.Data { | ||||
var tmp = map[string]string{ | var tmp = map[string]string{ | ||||
"img_list": zhios_third_party_utils.SerializeStr(v.ImgList), | |||||
"gid": v.Gid, | "gid": v.Gid, | ||||
"title": v.GoodsTitle, | "title": v.GoodsTitle, | ||||
"img": v.GoodsImg, | "img": v.GoodsImg, | ||||
@@ -40,6 +40,7 @@ func KuaiShouGoods(tikTokArgs map[string]interface{}) []map[string]string { | |||||
} | } | ||||
for _, v := range tmp.Data { | for _, v := range tmp.Data { | ||||
var tmp = map[string]string{ | var tmp = map[string]string{ | ||||
"img_list": zhios_third_party_utils.SerializeStr(v.Imgs), | |||||
"gid": v.GoodsID, | "gid": v.GoodsID, | ||||
"title": v.GoodsTitle, | "title": v.GoodsTitle, | ||||
"img": v.GoodsImg, | "img": v.GoodsImg, | ||||