正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -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'] = ''; |
-
请 注册 或 登录 后发表评论