wupengfei 2 年之前
父節點
當前提交
60826f9d7a
共有 2 個文件被更改,包括 3 次插入7 次删除
  1. 2 2
      .idea/workspace.xml
  2. 1 5
      application/user/controller/Message.php

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="aa">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/user/view/message/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/user/view/message/form.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/user/controller/Message.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/user/controller/Message.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -178,7 +178,7 @@
       <workItem from="1667177955215" duration="18480000" />
       <workItem from="1667205194069" duration="1057000" />
       <workItem from="1667206310151" duration="2427000" />
-      <workItem from="1667263628412" duration="5309000" />
+      <workItem from="1667263628412" duration="5346000" />
     </task>
     <servers />
   </component>

+ 1 - 5
application/user/controller/Message.php

@@ -109,11 +109,7 @@ class Message extends Controller
      */
     protected function _form_filter(&$data)
     {
-        if($this->request->isPost() && $this->request->action() == 'send')
-        {
-            if(!$data['label_id'] || !$data['content']) $this->error('参数错误');
-            LabelMessage::create(['label_id'=>$data['label_id'],'content'=>$data['content']]);
-        }
+        $data['type'] = 2;
     }
 
 }