作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改过期时间

@@ -72,6 +72,10 @@ class Index extends Frontend @@ -72,6 +72,10 @@ class Index extends Frontend
72 // 获取视频第一帧图片 72 // 获取视频第一帧图片
73 $video_info = json_decode(file_get_contents($data['video'] . '?avinfo'), true); 73 $video_info = json_decode(file_get_contents($data['video'] . '?avinfo'), true);
74 $data['video_image'] = $this->get_video_first_image($data['video'], $video_info); 74 $data['video_image'] = $this->get_video_first_image($data['video'], $video_info);
  75 +
  76 +
  77 + $data_video = Db::name('open')->where('id',1)->find();
  78 + $data['switch'] = $data_video['switch'];
75 }elseif ($data['type'] == 1){ 79 }elseif ($data['type'] == 1){
76 $data['images'] = ''; 80 $data['images'] = '';
77 $data['video'] = ''; 81 $data['video'] = '';