|
@@ -134,13 +134,6 @@ func (this *TacticsController) List() {
|
|
|
br.Msg = "获取帖子数据失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- lenList := len(list)
|
|
|
- for i := 0; i < lenList; i++ {
|
|
|
- item := list[i]
|
|
|
- list[i].Body, _ = services.GetReportContentTextSub(item.Body)
|
|
|
- //list[i].Abstract = html.UnescapeString(item.Abstract)
|
|
|
- list[i].Abstract, _ = services.GetReportContentTextSub(item.Abstract)
|
|
|
- }
|
|
|
|
|
|
for k, v := range list {
|
|
|
if v.Readnum == 0 && user.CreatedTime.Before(utils.StrTimeToTime(v.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(v.PublishDate)) {
|
|
@@ -157,6 +150,19 @@ func (this *TacticsController) List() {
|
|
|
}
|
|
|
resp.MatchTypeName = detail.MatchTypeName
|
|
|
}
|
|
|
+ lenList := len(list)
|
|
|
+ for i := 0; i < lenList; i++ {
|
|
|
+ item := list[i]
|
|
|
+ list[i].Body, _ = services.GetReportContentTextSub(item.Body)
|
|
|
+ //list[i].Abstract = html.UnescapeString(item.Abstract)
|
|
|
+ list[i].Abstract, _ = services.GetReportContentTextSub(item.Abstract)
|
|
|
+ list[i].Annotation, _ = services.GetReportContentTextSub(item.Annotation)
|
|
|
+ //行业比较研究、资金流向,显示报告的摘要
|
|
|
+ if resp.MatchTypeName == "行业比较研究" || resp.MatchTypeName == "资金流向" {
|
|
|
+ list[i].Annotation = list[i].Abstract
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
resp.CategoryImgUrlPc = mapChartPermission[detail.ChartPermissionName]
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|