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

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <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" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -266,7 +267,7 @@
       <workItem from="1679014817602" duration="22183000" />
       <workItem from="1679287382176" duration="14525000" />
       <workItem from="1679359715116" duration="25702000" />
-      <workItem from="1679532313623" duration="21173000" />
+      <workItem from="1679532313623" duration="21187000" />
     </task>
     <servers />
   </component>

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

@@ -39,7 +39,7 @@ class VideoComment extends Controller
         $sel_where[] = ['c.url_id','=',$this->url_id];
         if($content = $this->request->get('content'))$sel_where[] = ['c.content','like','%'.$content.'%'];
         if($name = $this->request->get('name'))$sel_where[] = ['u.name','like','%'.$name.'%'];
-        if($id = $this->request->get('id')) $sel_where[] = ['c. if($id = $this->request->get(\'id\')) $sel_where[] = [\'id\',\'=\',$id];id','=',$id];
+        if($id = $this->request->get('id')) $sel_where[] = ['c.id','=',$id];
         $query = $this->_query($this->table)->alias('c')
             ->field('c.*,u.name,u.headimg')
             ->leftJoin("store_member u",'u.id = c.user_id')