From fb46ef9123775f7cf36b8eda63fa55bcfb46810d Mon Sep 17 00:00:00 2001
From: guosheng <gs@bronet.cn>
Date: Fri, 21 Aug 2020 21:38:01 +0800
Subject: [PATCH] 修改过期时间

---
 application/index/controller/Index.php | 4 ++++
 1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php
index cb9f8b8..0b05050 100644
--- a/application/index/controller/Index.php
+++ b/application/index/controller/Index.php
@@ -72,6 +72,10 @@ class Index extends Frontend
             // 获取视频第一帧图片
             $video_info = json_decode(file_get_contents($data['video'] . '?avinfo'), true);
             $data['video_image'] = $this->get_video_first_image($data['video'], $video_info);
+
+
+            $data_video = Db::name('open')->where('id',1)->find();
+            $data['switch'] = $data_video['switch'];
         }elseif ($data['type'] == 1){
             $data['images'] = '';
             $data['video'] = '';
--
libgit2 0.24.0