|
@@ -682,7 +682,12 @@ func GetReportList(user user.UserInfo, keyWord string, classifyIdFirst, classify
|
|
|
temp.ClassifyNameFirst = reportItem.ClassifyNameFirst
|
|
|
temp.ClassifyIdSecond = reportItem.ClassifyIdSecond
|
|
|
temp.ClassifyNameSecond = reportItem.ClassifyNameSecond
|
|
|
+ if len(v.Highlight["ClassifyNameSecond"]) > 0 {
|
|
|
+ temp.ClassifyNameSecond = v.Highlight["ClassifyNameSecond"][0]
|
|
|
+ }
|
|
|
temp.Abstract = reportItem.Abstract
|
|
|
+ stageInt, _ := strconv.Atoi(reportItem.StageStr)
|
|
|
+ temp.Stage = stageInt
|
|
|
temp.StageStr = reportItem.StageStr
|
|
|
temp.Title = reportItem.Title
|
|
|
temp.PublishTime, err = time.Parse("2006-01-02 15:04:05", reportItem.PublishTime)
|
|
@@ -738,6 +743,15 @@ func GetReportList(user user.UserInfo, keyWord string, classifyIdFirst, classify
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ // 以下分类图标特殊处理 =_=!
|
|
|
+ reportImgMap := map[string]string{
|
|
|
+ "晨报": "report_list_chen.png",
|
|
|
+ "周报": "report_list_zhou.png",
|
|
|
+ "月报": "report_list_yue.png",
|
|
|
+ "大事点评": "report_list_dashidianping.png",
|
|
|
+ "会议纪要": "report_list_huiyijiyao.png",
|
|
|
+ "年报合集": "report_list_nianbaoheji.png",
|
|
|
+ }
|
|
|
for _, reportInfo := range list {
|
|
|
reportItem := new(response.ReportListItem)
|
|
|
reportItem.ReportId = reportInfo.Id
|
|
@@ -758,12 +772,16 @@ func GetReportList(user user.UserInfo, keyWord string, classifyIdFirst, classify
|
|
|
stageStr = strconv.Itoa(reportInfo.Stage)
|
|
|
}
|
|
|
reportItem.TitleInfo = fmt.Sprintf("【第%s期|FICC|%s】", stageStr, reportItem.ClassifyNameSecond)
|
|
|
+ trimClassifyNameSecond := utils.TrimHtml(reportInfo.ClassifyNameSecond)
|
|
|
if reportInfo.ClassifyNameFirst == "晨报" || reportInfo.ClassifyNameFirst == "周报" || classifyIdSecond > 0 {
|
|
|
reportItem.ReportImgUrl = utils.ALIYUN_YBIMG_HOST + reportImgUrl
|
|
|
reportItem.TitleInfo = fmt.Sprintf("【第%s期|FICC|%s】", stageStr, reportItem.ClassifyNameFirst)
|
|
|
- } else if url, ok := permissionImageMap[reportInfo.ClassifyNameSecond]; ok {
|
|
|
+ } else if url, ok := permissionImageMap[trimClassifyNameSecond]; ok {
|
|
|
reportItem.ReportImgUrl = utils.ALIYUN_YBIMG_HOST + url
|
|
|
}
|
|
|
+ if img, ok := reportImgMap[reportInfo.ClassifyNameFirst]; ok {
|
|
|
+ reportItem.ReportImgUrl = utils.ALIYUN_YBIMG_HOST + img
|
|
|
+ }
|
|
|
|
|
|
if classifyParent.ClassifyName == "晨报" && productAuthOk {
|
|
|
// 查询当前晨报的所有音频
|