Browse Source

首页视频

lizhen_gitee 8 months ago
parent
commit
36e2c97ba2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Tvindex.php

+ 2 - 2
application/api/controller/Tvindex.php

@@ -7,7 +7,7 @@ use think\Db;
 use Redis;
 class Tvindex extends Api
 {
-    protected $noNeedLogin = ['indexdata','video_list','videoinfo','zhuanti','tudingc','search','history','app_error'];
+    protected $noNeedLogin = ['indexdata','video_list','videoinfo','videoinfo_simple','zhuanti','tudingc','search','history','app_error'];
     protected $noNeedRight = '*';
 
     //首页
@@ -176,7 +176,7 @@ class Tvindex extends Api
             $this->error('您的网络开小差了');
         }
 
-        $info = Db::name('video')->field('id,video_type_id, title, image, desc, is_pay, status, inject_status, seriesid, programid, movieid')
+        $info = Db::name('video')->field('id,video_type_id,childcate_id, title, image, desc, is_pay, status, inject_status, seriesid, programid, movieid')
             ->where(['id' => $id])->find();
         if (!$info) {
             $this->error('数据不存在');