소스 검색

no message

xingzai 2 년 전
부모
커밋
8dbebc1df1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/article.go

+ 1 - 1
services/article.go

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