wupengfei 2 years ago
parent
commit
50986b24bf
2 changed files with 2 additions and 3 deletions
  1. 1 2
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Video.php

+ 1 - 2
.idea/workspace.xml

@@ -3,7 +3,6 @@
   <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/Press.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Press.php" afterDir="false" />
       <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" />
@@ -217,7 +216,7 @@
       <workItem from="1663893231881" duration="18711000" />
       <workItem from="1664152288609" duration="21956000" />
       <workItem from="1664239350913" duration="12906000" />
-      <workItem from="1664412298142" duration="3502000" />
+      <workItem from="1664412298142" duration="4163000" />
     </task>
     <servers />
   </component>

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

@@ -579,7 +579,7 @@ class Video extends Base
         $res =  VideoComment::create(['user_id'=>$this->user_id,'content'=>$content,'video_id'=>$video_id,'url_id'=>$url_id,'video_type'=>$video_type]);;
         $detail  =VideoComment::where('c.id',$res->id)
             ->alias('c')
-            ->field('c.id,c.content,c.create_at,u.name,u.headimg')
+            ->field('c.id,c.content,c.user_id,c.create_at,u.name,u.headimg')
             ->leftJoin('store_member u','u.id = c.user_id')
             ->find()->toArray();
         $send_user = VideoUrl::where('id',$url_id)->value('user_id');