chuweiqiang hai 1 ano
pai
achega
33c1b70321
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      .idea/workspace.xml
  2. 2 1
      application/api/controller/Forum.php

+ 1 - 1
.idea/workspace.xml

@@ -569,7 +569,7 @@
       <workItem from="1710722050864" duration="8908000" />
       <workItem from="1710808231575" duration="7017000" />
       <workItem from="1710817453185" duration="16334000" />
-      <workItem from="1710896140284" duration="12219000" />
+      <workItem from="1710896140284" duration="12405000" />
     </task>
     <servers />
   </component>

+ 2 - 1
application/api/controller/Forum.php

@@ -1225,13 +1225,14 @@ class Forum extends Base
         $sel_where[] = ['t.reply_id',$type == 1 ? '=' :'>',0];
         $list = ForumReplyComment::where($sel_where)
             ->alias('t')
-            ->field('t.id,t.is_top,t.create_at,t.content,t.pid,t.forum_id,i.title,t.reply_id,t.is_deleted,i.level')
+            ->field('t.id,t.is_top,t.create_at,t.content,t.pid,t.forum_id,i.content title,t.reply_id,t.is_deleted,i.level')
             ->leftJoin('UserForum i', 't.forum_id = i.id')
             ->leftJoin('ForumReplyComment c', 'c.id = t.pid')
             ->order('t.id desc')
             ->limit($this->off_set, $this->page_num)
             ->select()->toArray();
         foreach ($list as &$v) {
+            $v['title'] = strip_tags($v['title']);
             $v['user_name']  = $this->user_info['name'];
             $v['headimg']    = $this->user_info['headimg'];
             $parent_comment = ForumReplyComment::where([['t.id', '=', $v['pid']]])