perf: 优化细节

This commit is contained in:
Ying
2023-08-04 11:23:37 +08:00
parent 21033a9d89
commit d1126120ac
2 changed files with 4 additions and 4 deletions

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'] . '%'];