Browse Source

Merge branch 'liuzj-permission-dev' into test

liuzejian 1 year ago
parent
commit
5ece488d61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/Video/Http/Controllers/VideoController.php

+ 1 - 1
modules/Video/Http/Controllers/VideoController.php

@@ -40,7 +40,7 @@ class VideoController extends CatchController
             })->when($categoryId, function ($query, $categoryId){
                 return $query->where('category_id', $categoryId);
             })->orderBy('id', 'desc')
-            ->paginate($request->integer('per_page', 15));
+            ->paginate($request->integer('limit', 15));
         $userContext = $this->getUserContext($request->input('operateUserId'));
         $allVideoCategory =  DB::table('video_category')
             ->get()->keyBy('id');