瀏覽代碼

no message

xingzai 2 年之前
父節點
當前提交
21d3103ec8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/elastic.go

+ 1 - 1
services/elastic.go

@@ -999,7 +999,7 @@ func EsArticleSearch(keyWord string, startSize, pageSize int, orderColumn string
 			},
 		},
 	}
-	if orderColumn == "PublishDate" {
+	if orderColumn == "Comprehensive" {
 		queryMap["sort"] = sortMap
 	}
 	queryMap["from"] = startSize