zhangchangchun 5 years ago
parent
commit
5604dfc87e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/Repositories/V2/VideoGroupRepository.php

+ 5 - 1
app/Repositories/V2/VideoGroupRepository.php

@@ -166,7 +166,11 @@ class VideoGroupRepository {
     }
     //列表
     public function VideoInfoIndex($request){
+        $where = [];
+        if(isset($request['id'])){
+            $where[] = ['video_group_id'=>$request['id']];
+        }
         $perPage = isset($request['per_page']) ? $request['per_page'] : 20;
-        return $this->videoGroupInfo->paginate($perPage);
+        return $this->videoGroupInfo->where($where)->paginate($perPage);
     }
 }