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