fix(admin-controller): ensure page and limit are integers

Cast page and limit values to integers in AdminController's filter method to prevent
type-related errors. This change guarantees that these parameters are whole numbers,
which is essential for consistent database pagination and filtering operations.
This commit is contained in:
wolfcode
2024-08-27 18:49:26 +08:00
parent af419ff25b
commit 857533704e

View File

@@ -199,7 +199,7 @@ class AdminController extends BaseController
$where[] = [$key, $op, "%{$val}"];
}
}
return [$page, $limit, $where, $excludes];
return [(int)$page, (int)$limit, $where, $excludes];
}
/**