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