wupengfei 2 tahun lalu
induk
melakukan
ea0c232373

+ 3 - 2
.idea/workspace.xml

@@ -3,7 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Forum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Forum.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Video.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Video.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/common/model/VideoIntro.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common/model/VideoIntro.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -169,7 +170,7 @@
       <workItem from="1666574984353" duration="7852000" />
       <workItem from="1666659002848" duration="14268000" />
       <workItem from="1666746114555" duration="18673000" />
-      <workItem from="1666833605829" duration="15154000" />
+      <workItem from="1666833605829" duration="16180000" />
     </task>
     <servers />
   </component>

+ 1 - 0
application/api/controller/Video.php

@@ -320,6 +320,7 @@ class Video extends Base
         if($title && $this->user_id) UserSearch::saveSearchTitle($this->user_id,$title,1);
         $sel_where = [];
         $sel_where[]  = ['is_deleted','=',0];
+        $sel_where[]  = ['status','=',1];
         if($title)  $sel_where[]  = ['title','like','%'.$title.'%'];
         $app_name = sysconf('app_name');
         $app_logo = sysconf('app_logo');

+ 1 - 1
application/common/model/VideoIntro.php

@@ -6,7 +6,7 @@ class VideoIntro extends Model
 {
     public function videoArr()
     {
-        return $this->hasMany('VideoUrl','video_id')->where('is_deleted',0)->order('sort desc');
+        return $this->hasMany('VideoUrl','video_id')->where('status',1)->where('is_deleted',0)->order('sort desc');
     }
 
     public function cateDetail()