wupengfei 2 yıl önce
ebeveyn
işleme
93951e54e7
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      .idea/workspace.xml
  2. 2 2
      application/api/controller/Forum.php

+ 1 - 1
.idea/workspace.xml

@@ -197,7 +197,7 @@
       <workItem from="1669941719663" duration="1986000" />
       <workItem from="1669952538953" duration="9708000" />
       <workItem from="1670201125142" duration="9015000" />
-      <workItem from="1670287594399" duration="4182000" />
+      <workItem from="1670287594399" duration="4230000" />
     </task>
     <servers />
   </component>

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

@@ -365,8 +365,8 @@ class Forum extends Base
                ->alias('t')
                ->leftJoin('UserForum i','t.forum_id = i.id')
                ->leftJoin('store_member u','t.user_id = u.id')
-               ->find()->toArray();
-           $c['parent_comment']= $parent_comment;
+               ->find();
+           $c['parent_comment']= $parent_comment ? $parent_comment->toArray() : null;
        }
        $total_num = ForumReplyComment::where(['c.reply_id'=>$reply_id,'c.is_deleted'=>0])->alias('c')->count();
        $this->success('ok',compact(['list','total_num']));