ziwen 1 year ago
parent
commit
a994015de6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/yanxuan_special.go

+ 2 - 2
controllers/yanxuan_special.go

@@ -170,7 +170,7 @@ func (this *YanxuanSpecialController) Detail() {
 	if item.ImgUrl != "" {
 		imgList := strings.Split(item.ImgUrl, ",")
 		for _, s := range imgList {
-			resp.ImgUrlList = append(item.ImgUrlList, s)
+			resp.ImgUrlList = append(resp.ImgUrlList, s)
 		}
 	} else {
 		resp.ImgUrlList = []string{}
@@ -178,7 +178,7 @@ func (this *YanxuanSpecialController) Detail() {
 	if item.Tags != "" {
 		tagList := strings.Split(item.Tags, ",")
 		for _, s := range tagList {
-			resp.TagList = append(item.TagList, s)
+			resp.TagList = append(resp.TagList, s)
 		}
 	} else {
 		resp.TagList = []string{}