日志动态分页数量
This commit is contained in:
parent
a5c193f192
commit
20091aaf43
@ -9,7 +9,7 @@ class LoginLog extends CatchController
|
|||||||
{
|
{
|
||||||
public function list()
|
public function list()
|
||||||
{
|
{
|
||||||
return CatchResponse::paginate(Db::name('login_log')->paginate(10));
|
return CatchResponse::paginate(Db::name('login_log')->paginate(request()->param('limit') ?? 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function empty()
|
public function empty()
|
||||||
|
@ -14,7 +14,7 @@ class OperateLog extends CatchController
|
|||||||
->field(['operate_log.*', 'users.username as creator'])
|
->field(['operate_log.*', 'users.username as creator'])
|
||||||
->join('users','users.id = operate_log.creator_id')
|
->join('users','users.id = operate_log.creator_id')
|
||||||
->order('id', 'desc')
|
->order('id', 'desc')
|
||||||
->paginate(10)
|
->paginate(request()->param('limit') ?? 10)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user