wupengfei 2 years ago
parent
commit
79c31b9fd4
2 changed files with 10 additions and 4 deletions
  1. 1 1
      .idea/workspace.xml
  2. 9 3
      application/operate/controller/Forum.php

+ 1 - 1
.idea/workspace.xml

@@ -202,7 +202,7 @@
       <workItem from="1670547445908" duration="12147000" />
       <workItem from="1670633686675" duration="15717000" />
       <workItem from="1670719843429" duration="8446000" />
-      <workItem from="1670807412269" duration="4954000" />
+      <workItem from="1670807412269" duration="5012000" />
     </task>
     <servers />
   </component>

+ 9 - 3
application/operate/controller/Forum.php

@@ -123,17 +123,23 @@ class Forum extends Controller
             ->leftJoin('store_member u','u.id = r.user_id')
             ->where($where)
             ->order('r.id desc')->page();
+
+        $this->assign('list',$list);
+        $this->fetch('');
+    }
+    protected function _reply_page_filter(&$data){
         $app_name = sysconf('app_name');
         $app_logo = sysconf('app_logo');
-        foreach ($list as &$v) {
+        foreach ($data as &$v)
+        {
             if(!$v['user_id']) $v['name'] = $app_name;
             if(!$v['user_id']) $v['headimg'] = $app_logo;
         }
-        $this->assign('list',$list);
-        $this->fetch('');
+
     }
 
 
+
     public function del_reply()
     {
         Db::name('forum_reply')->where('id',input('id'))->update(['is_deleted'=>1]);