浏览代码

Merge branch 'cygx/cygx_15_0_1' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

zhangchuanxing 4 天之前
父节点
当前提交
c53624e56a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      controllers/search.go

+ 3 - 2
controllers/search.go

@@ -488,6 +488,7 @@ func (this *SearchController) ListHomeArtAndChart() {
 // @Param   CurrentIndex   query   int  true       "当前页页码,从1开始"
 // @Param   KeyWord   query   string  true       "搜索关键词"
 // @Param   OrderColumn   query   int  true       "排序字段 ,Comprehensive综合 ,Matching匹配度 ,PublishDate 发布时间 "
+// @Param   ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
 // @Success 200 {object} models.SearchItem
 // @router /artAndChart/listPage [get]
 func (this *SearchController) ListHomeArtAndChartPage() {
@@ -498,7 +499,7 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 	}()
 	pageSize, _ := this.GetInt("PageSize")
 	currentIndex, _ := this.GetInt("CurrentIndex")
-	// @Param   ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
+
 	listType, _ := this.GetInt("ListType")
 	var startSize int
 	if pageSize <= 0 {
@@ -507,7 +508,7 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 	if currentIndex <= 0 {
 		currentIndex = 1
 	}
-	listType = 1
+
 	startSize = paging.StartIndex(currentIndex, pageSize)
 	keyWord := this.GetString("KeyWord")
 	orderColumn := this.GetString("OrderColumn")