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