|
@@ -76,6 +76,14 @@ func (this *YanxuanSpecialController) List() {
|
|
|
br.ErrMsg = "获取失败, Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ var yanxuanSpecialIds []int
|
|
|
+ for _, v := range list {
|
|
|
+ yanxuanSpecialIds = append(yanxuanSpecialIds, v.Id)
|
|
|
+ }
|
|
|
+
|
|
|
+ pvMap := services.GetYanxuanSpecialRecordByYanxuanSpecialId(yanxuanSpecialIds)
|
|
|
+
|
|
|
for _, v := range list {
|
|
|
hasImg, err := utils.ArticleHasImgUrl(v.Content)
|
|
|
if err != nil {
|
|
@@ -114,6 +122,7 @@ func (this *YanxuanSpecialController) List() {
|
|
|
}
|
|
|
v.Tags += v.IndustryTags
|
|
|
}
|
|
|
+ v.Pv = pvMap[v.Id]
|
|
|
}
|
|
|
|
|
|
isAuthor, isImproveInformation := services.GetYanxuanSpecialAuthorInfo(sysUser) //用户是否没开通研选专栏以及,专栏信息是否完善
|
|
@@ -122,7 +131,6 @@ func (this *YanxuanSpecialController) List() {
|
|
|
resp.List = list
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
resp.Paging = page
|
|
|
-
|
|
|
br.Data = resp
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|