wugg 2 lat temu
rodzic
commit
e4dab898b4
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      app/admin/controller/Project.php

+ 4 - 1
app/admin/controller/Project.php

@@ -2,15 +2,18 @@
 
 
 
 
 namespace app\admin\controller;
 namespace app\admin\controller;
+use app\BaseController;
 use think\App;
 use think\App;
 use think\facade\Db;
 use think\facade\Db;
 
 
-class Project extends Base
+class Project extends BaseController
 {
 {
 
 
+    public $post="";
     public function __construct(App $app)
     public function __construct(App $app)
     {
     {
         parent::__construct($app);
         parent::__construct($app);
+        $this->post=$this->request->post();
     }
     }
     public function create(){
     public function create(){
         $name = isset($this->post['name'])&&$this->post['name']!=""? trim($this->post['name']):"";
         $name = isset($this->post['name'])&&$this->post['name']!=""? trim($this->post['name']):"";