wupengfei 2 tahun lalu
induk
melakukan
2a9a713e95
2 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 1 2
      .idea/workspace.xml
  2. 1 1
      application/operate/controller/Forum.php

+ 1 - 2
.idea/workspace.xml

@@ -3,7 +3,6 @@
   <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/api/controller/Forum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Forum.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/controller/Forum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/Forum.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -203,7 +202,7 @@
       <workItem from="1670547445908" duration="12147000" />
       <workItem from="1670633686675" duration="15717000" />
       <workItem from="1670719843429" duration="8446000" />
-      <workItem from="1670807412269" duration="4807000" />
+      <workItem from="1670807412269" duration="4833000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/operate/controller/Forum.php

@@ -167,7 +167,7 @@ class Forum extends Controller
             $content = input('post.content');
             if(!$content) $this->error('请输入内容');
             $issue_user  = UserForum::where('id',$id)->value('user_id');
-            $res = ForumReply::create(['user_id'=>$this->user_id,'content'=>$content,'issue_user'=>$issue_user,'forum_id'=>$id]);
+            $res = ForumReply::create(['user_id'=>0,'content'=>$content,'issue_user'=>$issue_user,'forum_id'=>$id]);
             if($issue_user)UserMessage:: sendUserMessage($issue_user,'forum',5,0,0,$id,'平台回复了您的提问');
         }
     }