@@ -6,6 +6,7 @@ import (
"hongze/hongze_cygx/services"
"hongze/hongze_cygx/utils"
"html"
+ "strconv"
"strings"
)
@@ -159,6 +160,7 @@ func (this *HomeController) ListHome() {
} else {
list[k].ImgUrlPc = mapCategoryUrl[v.CategoryId]
}
+ list[k].HttpUrl = "https://vmp.hzinsights.com/v2/articles/" + strconv.Itoa(v.ArticleId)
resp.List = list
resp.Paging = page
@@ -95,6 +95,7 @@ type HomeArticle struct {
Pv int `description:"PV"`
ImgUrlPc string `description:"图片链接"`
CategoryId string `description:"文章分类"`
+ HttpUrl string `description:"文章链接跳转地址"`
type ArticleDetail struct {