|
@@ -523,7 +523,7 @@ func (this *HomeController) ListHomeArtAndChart() {
|
|
|
item := list[k]
|
|
|
//如果文章一开始的内容是图片,优先展示第一张图片
|
|
|
imgurl, _ := services.FixArticleImgUrl(html.UnescapeString(list[k].Body))
|
|
|
- newBody, _ := services.GetReportContentTextSubByarticle(item.Body, item.Abstract, item.ArticleId)
|
|
|
+ newBody, _ := services.GetReportContentTextSubByarticle(item.Body, item.Annotation, item.ArticleId)
|
|
|
list[k].Body = newBody
|
|
|
if imgurl != "" {
|
|
|
list[k].BodyHtml = imgurl
|