|
@@ -250,7 +250,7 @@ func (this *MobileSearchController) ListHomeArtAndChart() {
|
|
|
articleIds = append(articleIds, v.ArticleId)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ articleMapPv := services.GetArticleHistoryByArticleId(articleIds) //文章Pv
|
|
|
//ListType query int true "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
|
|
|
//记录用户搜索关键词
|
|
|
//var source int
|
|
@@ -277,6 +277,7 @@ func (this *MobileSearchController) ListHomeArtAndChart() {
|
|
|
yxArticleIdMap := services.GetYxArticleIdMap(articleIds)
|
|
|
for _, v := range result {
|
|
|
v.IsResearch = yxArticleIdMap[v.ArticleId] // 添加是否属于研选的标识
|
|
|
+ v.Pv = articleMapPv[v.ArticleId] // 添加Pv
|
|
|
}
|
|
|
}
|
|
|
page := paging.GetPaging(currentIndex, pageSize, int(total))
|