wupengfei 2 years ago
parent
commit
ba8d2b37a2
2 changed files with 2 additions and 3 deletions
  1. 1 1
      .idea/workspace.xml
  2. 1 2
      application/api/controller/Forum.php

+ 1 - 1
.idea/workspace.xml

@@ -205,7 +205,7 @@
       <workItem from="1670719843429" duration="8446000" />
       <workItem from="1670807412269" duration="9728000" />
       <workItem from="1671065604459" duration="7662000" />
-      <workItem from="1671152221434" duration="11797000" />
+      <workItem from="1671152221434" duration="11923000" />
     </task>
     <servers />
   </component>

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

@@ -30,7 +30,6 @@ class Forum extends Base
         parent::initialize();
         parent::checkLogin();
         if(!$this->user_id) parent::setUid();
-        if($this->user_id == 97) $this->user_id =83;
     }
 
     /**
@@ -840,7 +839,7 @@ class Forum extends Base
     {
         // 所有我评论的回答
         $all_comment = ForumReplyComment::where(['user_id'=>$this->user_id,'is_deleted'=>0])->column('id');
-        if(empty($all_comment)) $this->success('ok',['list'=>null]);
+        if(empty($all_comment)) $this->success('ok',['list'=>null,'ext'=>$all_comment]);
         $sel_where  = [];
         $title = input('get.title');
         if($title)  $sel_where[]  = ['i.title','like','%'.$title.'%'];