|
@@ -84,6 +84,13 @@ func (this *ArticleController) Detail() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ detail.PublishDate = utils.TimeRemoveHms2(detail.PublishDate)
|
|
|
+ detail.Body = html.UnescapeString(detail.Body)
|
|
|
+ detail.Body = strings.Replace(detail.Body, "<p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "", -1)
|
|
|
+ detail.Body = strings.Replace(detail.Body, "pre", "div", -1)
|
|
|
+ //detail.Abstract = html.UnescapeString(detail.Abstract)
|
|
|
+ detail.Abstract, _ = services.GetReportContentTextSubNew(detail.Abstract)
|
|
|
+
|
|
|
lyjhTypeMap, _ := services.GetLyjhTypeMap()
|
|
|
if _, ok := lyjhTypeMap[detail.CategoryId]; ok {
|
|
|
detail.IsRoadShow = true
|
|
@@ -198,13 +205,6 @@ func (this *ArticleController) Detail() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- detail.PublishDate = utils.TimeRemoveHms2(detail.PublishDate)
|
|
|
- detail.Body = html.UnescapeString(detail.Body)
|
|
|
- detail.Body = strings.Replace(detail.Body, "<p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "", -1)
|
|
|
- detail.Body = strings.Replace(detail.Body, "pre", "div", -1)
|
|
|
- //detail.Abstract = html.UnescapeString(detail.Abstract)
|
|
|
- detail.Abstract, _ = services.GetReportContentTextSubNew(detail.Abstract)
|
|
|
-
|
|
|
if companyPermission == "" {
|
|
|
if applyCount > 0 {
|
|
|
hasPermission = 5
|