瀏覽代碼

no message

xingzai 8 月之前
父節點
當前提交
cec6eba449
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      controllers/yanxuan_special.go

+ 8 - 0
controllers/yanxuan_special.go

@@ -185,6 +185,14 @@ func (this *YanxuanSpecialNoLoginController) Detail() {
 		br.ErrMsg = "获取失败, Err:" + tmpErr.Error()
 		return
 	}
+	if item.ImgUrl != "" {
+		imgList := strings.Split(item.ImgUrl, ",")
+		for _, s := range imgList {
+			item.ImgUrlList = append(item.ImgUrlList, s)
+		}
+	} else {
+		item.ImgUrlList = []string{}
+	}
 
 	//记录分享来源
 	if inviteShareCode != "" {