Ver Fonte

no message

xingzai há 2 anos atrás
pai
commit
a2780f6fde
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      controllers/tactics.go

+ 2 - 2
controllers/tactics.go

@@ -155,8 +155,8 @@ func (this *TacticsController) List() {
 		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)
+		//list[i].Abstract, _ = services.GetReportContentTextSub(item.Abstract)
+		list[i].Annotation = strings.Replace(item.Annotation, "<br>", "", -1)
 		//行业比较研究、资金流向,显示报告的摘要
 		if resp.MatchTypeName == "行业比较研究" || resp.MatchTypeName == "资金流向" {
 			list[i].Annotation = list[i].Abstract