Sfoglia il codice sorgente

修改后台入口

邹景立 2 anni fa
parent
commit
308aa4ac4c
1 ha cambiato i file con 13 aggiunte e 15 eliminazioni
  1. 13 15
      app/admin/controller/Index.php

+ 13 - 15
app/admin/controller/Index.php

@@ -77,20 +77,7 @@ class Index extends Controller
             }
         }
     }
-        /**
-     * 表单数据处理
-     * @param array $data
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     */
-    protected function _form_filter(array &$data)
-    {
-        if ($this->request->isPost()) {
-            unset($data['username']);
-            unset($data['authorize']);
-        }
-    }
+
     /**
      * 修改用户资料
      * @login true
@@ -107,7 +94,18 @@ class Index extends Controller
     }
 
     /**
-     * 资料修改后处理
+     * 资料修改表单处理
+     * @param array $data
+     */
+    protected function _info_form_filter(array &$data)
+    {
+        if ($this->request->isPost()) {
+            unset($data['username'], $data['authorize']);
+        }
+    }
+
+    /**
+     * 资料修改结果处理
      * @param bool $status
      */
     protected function _info_form_result(bool $status)