feat: good

This commit is contained in:
2025-01-13 15:08:21 +08:00
parent bd8e54d842
commit 89b8db78dd

View File

@@ -32,7 +32,7 @@ class CategoryService extends BaseService
*/
public function handle()
{
$limit = $this->request->input('limit', 10);
$limit = (int)$this->request->input('limit', 10);
$list = $this->categoryModel->paginate($limit)->toArray();
if (empty($list['data'])) return $this->return->success('success',['list' => $list]);