|
|
@ -11,12 +11,15 @@ class VideoService extends AdminBaseService |
|
|
|
if (empty($param['page']) || !is_numeric($param['page'])) { |
|
|
|
return $this->toData('1', '参错错误'); |
|
|
|
} |
|
|
|
if (empty($param['limit']) || !is_numeric($param['limit'])) { |
|
|
|
return $this->toData('1', '参错错误'); |
|
|
|
} |
|
|
|
$where = []; |
|
|
|
if (isset($param['title'])) { |
|
|
|
$where['title'] = $param['title']; |
|
|
|
} |
|
|
|
$list = VideoOnDemandModel::where($where)->order('id', 'desc')->paginate([ |
|
|
|
'list_rows' => 15, |
|
|
|
'list_rows' => $param['limit'], |
|
|
|
'page' => $param['page'], |
|
|
|
]); |
|
|
|
return $this->toData('0', 'SUCCESS', [ |
|
|
|