浏览代码

我的收藏分页类型错误

xingzai 2 年之前
父节点
当前提交
daa545838d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/chart.go

+ 1 - 1
controllers/chart.go

@@ -71,7 +71,7 @@ func (this *ChartController) Collection() {
 		currentIndex = 1
 		pageSize = 0
 	}
-	list, err, total := services.GetChartCollectionByApi(mobile, (currentIndex-1)*pageSize, pageSize)
+	list, err, total := services.GetChartCollectionByApi(mobile, pageSize, (currentIndex-1)*pageSize)
 	if err != nil {
 		br.Msg = "获取图表分类失败!"
 		br.ErrMsg = "获取图表分类失败"