chuweiqiang пре 11 месеци
родитељ
комит
8c6a4b6070
2 измењених фајлова са 5 додато и 3 уклоњено
  1. 4 2
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Video.php

+ 4 - 2
.idea/workspace.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="" />
+    <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Video.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Video.php" afterDir="false" />
+    </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -587,7 +589,7 @@
       <workItem from="1712968426089" duration="7869000" />
       <workItem from="1713141319788" duration="25005000" />
       <workItem from="1713228029820" duration="12598000" />
-      <workItem from="1713313957989" duration="21596000" />
+      <workItem from="1713313957989" duration="21634000" />
     </task>
     <servers />
   </component>

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

@@ -282,7 +282,7 @@ class Video extends Base
             foreach ($value['video_arr'] as &$v){
                 $v['is_recently'] = $v['id'] == $recently_id ? 1 : 0;
             }
-            $value['cate'] = SeriesVideoCate::where('id',$value['second_classify'])->find();
+            $value['cate'] = SeriesVideoCate::where('id',$value['second_classify'])->value('title');
         }
         $this->success('ok',['list'=>$list,'total_num'=>numTransform($total_num),'total_count'=>$total_num,'page_num'=>$this->page_num]);
     }