|
@@ -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']):"";
|