fix: 分页转换int类型

This commit is contained in:
Ying
2022-11-28 22:34:17 +08:00
parent 3c98edcdd8
commit f19f236e9a
8 changed files with 8 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ class Dictionary extends AdminController
}
$count = $this->model->where($where)->count();
$list = $this->model->where($where)->limit($limit)->page($page)->select()
$list = $this->model->where($where)->limit((int)$limit)->page((int)$page)->select()
->each(function($item,$key) use ($pid){
if ($key == 0 && $pid == '0') {
$item['LAY_CHECKED'] = true;