fix: 分页转换int类型
This commit is contained in:
@@ -56,7 +56,7 @@ class UserGroup extends AdminController
|
||||
$count = $this->model->where($where)->count();
|
||||
$limit = empty($param['limit']) ? 10 : $param['limit'];
|
||||
$page = ($count <= $limit) ? 1 : $param['page'];
|
||||
$list = $this->model->where($where)->order("id asc")->limit($limit)->page((int)$page)->select()->toArray();
|
||||
$list = $this->model->where($where)->order("id asc")->limit((int)$limit)->page((int)$page)->select()->toArray();
|
||||
foreach ($list as $key => $value) {
|
||||
$list[$key]['title'] = __($value['title']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user