|
@@ -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
|
|
|
}
|