lizhen_gitee 10 mesiacov pred
rodič
commit
36e2c97ba2
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      application/api/controller/Tvindex.php

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

@@ -7,7 +7,7 @@ use think\Db;
 use Redis;
 use Redis;
 class Tvindex extends Api
 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 = '*';
     protected $noNeedRight = '*';
 
 
     //首页
     //首页
@@ -176,7 +176,7 @@ class Tvindex extends Api
             $this->error('您的网络开小差了');
             $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();
             ->where(['id' => $id])->find();
         if (!$info) {
         if (!$info) {
             $this->error('数据不存在');
             $this->error('数据不存在');