feat: good
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user