Commit 4c0a472a authored by 冯超鹏's avatar 冯超鹏

提交用户分页模块

parent 8b30b1d8
Pipeline #131 failed with stages
...@@ -268,8 +268,8 @@ class UserController extends Controller ...@@ -268,8 +268,8 @@ class UserController extends Controller
// 后台管理用户列表 // 后台管理用户列表
public function HUserList(Request $request) public function HUserList(Request $request)
{ {
$pagenNum = $request->input('page') - 1;//页数
$limit = $request->input('limit'); $limit = $request->input('limit');
$pagenNum = $limit * ($request->input('page') - 1);//页数
if (is_null($pagenNum)) { if (is_null($pagenNum)) {
return $this->jsonErrorData(105, 'page不能为空'); return $this->jsonErrorData(105, 'page不能为空');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment