Browse Source

首页视频

lizhen_gitee 9 months ago
parent
commit
9f25cdbe02
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/api/controller/Tvindex.php

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

@@ -100,14 +100,14 @@ class Tvindex extends Api
             $this->error('您的网络开小差了');
         }
         if($id){
-            $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();
         }else{
-            $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(['childcate_id' => $childcate_id])->where(['status'=>1,'inject_status'=>2])->order('weigh asc,id desc')->find();
         }
         if (!$info) {
-            $this->error('数据不存在');
+            $this->error('不存在的视频');
         }
         if ($info['status'] != 1) {
             $this->error('视频丢失');