浏览代码

Merge branch 'cygx_9.0' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 年之前
父节点
当前提交
036bb78867
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      services/article.go

+ 4 - 0
services/article.go

@@ -1872,6 +1872,10 @@ func ArticleAnnotation(item *models.HomeArticle) (annotation string) {
 func YxArticleAnnotation(article *models.HomeArticle) (annotation string) {
 	//如果不规范,就获取内容主体
 	if strings.Count(article.Body, "<hr") == 0 {
+		//如果内容不规范而且,还有图片,就把核心观点置空
+		if article.BodyHtml != "" {
+			return
+		}
 		annotation, _ = GetReportContentTextSub(article.Body)
 		return
 	}