浏览代码

no message

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

+ 5 - 1
services/article.go

@@ -284,6 +284,10 @@ func GetSpecialArticleDetailUserPower(user *models.WxUserItem, articleInfo *mode
 
 //处理核心观点的展示规则
 func ArticleAnnotation(item *models.ArticleListResp) (annotation string) {
-	annotation = strings.Replace(item.Annotation, "<br>", "", -1)
+	if item.Annotation == "" {
+		annotation = strings.Replace(item.Annotation, "<br>", "", -1)
+	} else {
+		annotation = item.Abstract
+	}
 	return
 }