|
|
@@ -68,7 +68,7 @@ class VideosService extends BaseService
|
|
|
$query->where('a.title','like',"%{$params['title']}%");
|
|
|
}
|
|
|
|
|
|
- if (isset($params['visible_type'])) {
|
|
|
+ if (isset($params['visible_type']) && $params['visible_type']) {
|
|
|
if(is_array($params['visible_type'])){
|
|
|
$query->whereIn('a.visible_type',$params['visible_type']);
|
|
|
}else{
|
|
|
@@ -78,7 +78,7 @@ class VideosService extends BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (isset($params['type'])) {
|
|
|
+ if (isset($params['type']) && $params['type']) {
|
|
|
if(is_array($params['type'])){
|
|
|
$query->whereIn('a.type',$params['type']);
|
|
|
}else{
|
|
|
@@ -88,7 +88,7 @@ class VideosService extends BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (isset($params['is_comment'])) {
|
|
|
+ if (isset($params['is_comment']) && $params['is_comment']) {
|
|
|
if(is_array($params['is_comment'])){
|
|
|
$query->whereIn('a.is_comment',$params['is_comment']);
|
|
|
}else{
|
|
|
@@ -98,7 +98,7 @@ class VideosService extends BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (isset($params['is_short'])) {
|
|
|
+ if (isset($params['is_short']) && $params['is_short']) {
|
|
|
if(is_array($params['is_short'])){
|
|
|
$query->whereIn('a.is_short',$params['is_short']);
|
|
|
}else{
|
|
|
@@ -108,7 +108,7 @@ class VideosService extends BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (isset($params['status'])) {
|
|
|
+ if (isset($params['status']) && $params['status']) {
|
|
|
if(is_array($params['status'])){
|
|
|
$query->whereIn('a.status',$params['status']);
|
|
|
}else{
|