|
@@ -864,6 +864,7 @@ func (this *UserController) CollectList() {
|
|
|
br.ErrMsg = "获取数据失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
resp := new(models.ArticleReportBillboardLIstPageResp)
|
|
|
if len(list) == 0 {
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
@@ -944,9 +945,21 @@ func (this *UserController) CollectList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //研选的五张图片
|
|
|
+ detailResearch, err := models.GetConfigByCode("category_research_img_url")
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败,GetConfigByCode Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ researchList := strings.Split(detailResearch.ConfigValue, "{|}")
|
|
|
+
|
|
|
lenList := len(list)
|
|
|
for i := 0; i < lenList; i++ {
|
|
|
item := list[i]
|
|
|
+ knum := item.ArticleId % 5
|
|
|
+ list[i].ImgUrlPc = researchList[knum]
|
|
|
+
|
|
|
article := articleMap[item.ArticleId]
|
|
|
if list[i].IsSpecialInt != 1 {
|
|
|
list[i].Title = article.Title
|
|
@@ -1210,10 +1223,20 @@ func (this *UserController) BrowseHistoryList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //研选的五张图片
|
|
|
+ detailResearch, err := models.GetConfigByCode("category_research_img_url")
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败,GetConfigByCode Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ researchList := strings.Split(detailResearch.ConfigValue, "{|}")
|
|
|
lenList := len(list)
|
|
|
for i := 0; i < lenList; i++ {
|
|
|
item := list[i]
|
|
|
article := articleMap[item.ArticleId]
|
|
|
+ knum := item.ArticleId % 5
|
|
|
+ list[i].ImgUrlPc = researchList[knum]
|
|
|
if article != nil {
|
|
|
list[i].Title = article.Title
|
|
|
list[i].PublishDate = utils.TimeRemoveHms2(article.PublishDate)
|
|
@@ -1230,13 +1253,6 @@ func (this *UserController) BrowseHistoryList() {
|
|
|
list[i].Pv = mapArticleCollectNum[article.ArticleId].Pv
|
|
|
list[i].IsCollect = mapArticleCollectNum[article.ArticleId].IsCollect
|
|
|
}
|
|
|
- //list[i].TitleEn = article.TitleEn
|
|
|
- //list[i].UpdateFrequency = article.UpdateFrequency
|
|
|
- //list[i].CreateDate = article.CreateDate
|
|
|
- //list[i].Body, _ = services.GetReportContentTextSub(article.Body)
|
|
|
- //list[i].Abstract = article.Abstract
|
|
|
- //list[i].CategoryName = article.CategoryName
|
|
|
- //list[i].SubCategoryName = article.SubCategoryName
|
|
|
}
|
|
|
}
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|