|
@@ -1679,7 +1679,7 @@ class Video extends Base
|
|
|
$sel_where[] = ['p.switch_value','=',1];
|
|
|
$title = input('title');
|
|
|
if($title) $sel_where[] = ['a.title','like','%'.$title.'%'];
|
|
|
- $field = 'p.id,p.switch_id as video_id,p.create_at,a.title,a.total_sequel,a.is_vip,a.cover,a.is_over';
|
|
|
+ $field = 'p.id,p.switch_id as video_id,p.create_at,a.title,a.total_sequel,a.is_vip,a.cover,a.is_over,a.status ,a.is_deleted';
|
|
|
$list = PlatformSwitch::field($field)
|
|
|
->alias('p')
|
|
|
->leftJoin('VideoIntro a','p.switch_id = a.id')
|
|
@@ -1688,7 +1688,7 @@ class Video extends Base
|
|
|
->order('p.id desc')
|
|
|
->select()->toArray();
|
|
|
array_walk($list,function (&$v){
|
|
|
- // $v['is_normal'] = CheckPower::checkModulesPower($v['video_id'],$v['url_id'],$this->request->controller());
|
|
|
+ $v['is_normal'] = $v['status'] == 1 && $v['is_deleted'] == 0 ? 1 : 0;
|
|
|
$v['recently_title'] = UserTrack::getRecentlyTitle($this->user_id,1,$v['video_id']);
|
|
|
$recently_id = UserTrack::getRecentlyTrack($this->user_id,1,$v['video_id']);
|
|
|
$v['recently_id'] = $recently_id ? $recently_id: 0;
|