wupengfei 2 years ago
parent
commit
0e06574048
2 changed files with 5 additions and 4 deletions
  1. 2 1
      .idea/workspace.xml
  2. 3 3
      application/nutrition/controller/VideoComment.php

+ 2 - 1
.idea/workspace.xml

@@ -2,6 +2,7 @@
 <project version="4">
   <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/nutrition/controller/VideoComment.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/VideoComment.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -181,7 +182,7 @@
       <workItem from="1660697982291" duration="9650000" />
       <workItem from="1660730926670" duration="1018000" />
       <workItem from="1660783282150" duration="17421000" />
-      <workItem from="1660870368036" duration="3763000" />
+      <workItem from="1660870368036" duration="3824000" />
     </task>
     <servers />
   </component>

+ 3 - 3
application/nutrition/controller/VideoComment.php

@@ -34,9 +34,9 @@ class VideoComment extends Controller
         $this->video_id = input('video_id');
         $this->url_id = input('url_id');
         $sel_where = [];
-        $sel_where[] = ['is_deleted','=',0];
-        $sel_where[] = ['video_id','=',$this->video_id];
-        $sel_where[] = ['url_id','=',$this->url_id];
+        $sel_where[] = ['c.is_deleted','=',0];
+        $sel_where[] = ['c.video_id','=',$this->video_id];
+        $sel_where[] = ['c.url_id','=',$this->url_id];
         $query = $this->_query($this->table)->alias('c')
             ->field('c.*,u.name,u.headimg')
             ->leftJoin("store_member u",'u.id = c.user_id')