|
|
@@ -28,9 +28,14 @@ class Education
|
|
|
$where["type1"] = 1;
|
|
|
}
|
|
|
|
|
|
- $grlist = $EducationModel->getEducationGrList($where, 20, "od asc,recommend desc,gr_id desc");
|
|
|
+ $page = input('page/d', 1);
|
|
|
+ $pageSize = input('pageSize/d', 20);
|
|
|
|
|
|
- $result = ['grlist' => $grlist,];
|
|
|
+ $grlist = $EducationModel->where($where)
|
|
|
+ ->order("od asc,recommend desc,gr_id desc")
|
|
|
+ ->paginate($pageSize, false, ['page' => $page]);
|
|
|
+
|
|
|
+ $result = ['grlist' => $grlist->items(), 'total' => $grlist->total()];
|
|
|
|
|
|
return app('json')->success($result);
|
|
|
}
|