Browse Source

no message

xingzai 2 years ago
parent
commit
909a292843
1 changed files with 1 additions and 2 deletions
  1. 1 2
      controllers/search.go

+ 1 - 2
controllers/search.go

@@ -604,14 +604,13 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 			br.ErrMsg = "检索失败,Err:" + err.Error()
 			return
 		}
-		tmpResult, tmpTotalResult, err := services.EsArticleSearch(keyWord, startSize, pageSize, orderColumn, 1)
+		tmpResult, tmpTotalResult, err := services.EsArticleSearchBody(keyWord, startSize, pageSize, orderColumn, 1)
 		if err != nil {
 			br.Msg = "检索失败"
 			br.ErrMsg = "检索失败,Err:" + err.Error()
 			return
 		}
 		result = tmpResult
-
 		if int(tmpTotalResult) < currentIndex*pageSize {
 			startSizeBody := startSize - int(tmpTotalResult)
 			if startSizeBody < 0 {