修复参数类型错误

Signed-off-by: 七彩枫叶 <424235748@qq.com>
This commit is contained in:
七彩枫叶
2023-07-19 03:04:24 +00:00
committed by Gitee
parent 918a5253b2
commit a70428585b

View File

@@ -36,8 +36,8 @@ class AdminGroupService
*/
public static function dataList(array $params = []): array
{
$page = $params['page'] ?? 1;
$limit = $params['limit'] ?? 10;
$page = (int)$params['page'] ?? 1;
$limit = (int)$params['limit'] ?? 10;
$where = [];
if (!empty($param['title'])) {
$where[] = ['title', 'like', '%' . $param['title'] . '%'];