|
@@ -494,15 +494,17 @@ func (this *UserController) BrowseHistoryList() {
|
|
for i := 0; i < lenList; i++ {
|
|
for i := 0; i < lenList; i++ {
|
|
item := list[i]
|
|
item := list[i]
|
|
article := articleMap[item.ArticleId]
|
|
article := articleMap[item.ArticleId]
|
|
- list[i].Title = article.Title
|
|
|
|
- list[i].TitleEn = article.TitleEn
|
|
|
|
- list[i].UpdateFrequency = article.UpdateFrequency
|
|
|
|
- list[i].CreateDate = article.CreateDate
|
|
|
|
- list[i].PublishDate = article.PublishDate
|
|
|
|
- list[i].Body, _ = services.GetReportContentTextSub(article.Body)
|
|
|
|
- list[i].Abstract = article.Abstract
|
|
|
|
- list[i].CategoryName = article.CategoryName
|
|
|
|
- list[i].SubCategoryName = article.SubCategoryName
|
|
|
|
|
|
+ if article!=nil {
|
|
|
|
+ list[i].Title = article.Title
|
|
|
|
+ list[i].TitleEn = article.TitleEn
|
|
|
|
+ list[i].UpdateFrequency = article.UpdateFrequency
|
|
|
|
+ list[i].CreateDate = article.CreateDate
|
|
|
|
+ list[i].PublishDate = article.PublishDate
|
|
|
|
+ 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)
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
resp := new(models.ArticleBrowseHistoryListResp)
|
|
resp := new(models.ArticleBrowseHistoryListResp)
|