|
@@ -7,6 +7,7 @@ use app\index\exception\ApiException;
|
|
use app\common\until\Token;
|
|
use app\common\until\Token;
|
|
use think\App;
|
|
use think\App;
|
|
use think\exception\ValidateException;
|
|
use think\exception\ValidateException;
|
|
|
|
+use think\facade\Session;
|
|
use think\Validate;
|
|
use think\Validate;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -70,6 +71,11 @@ abstract class BaseController
|
|
// $decodeToken = $token->decodeToken();
|
|
// $decodeToken = $token->decodeToken();
|
|
// $this->userId = $decodeToken['userId'];
|
|
// $this->userId = $decodeToken['userId'];
|
|
}
|
|
}
|
|
|
|
+ Session::init([
|
|
|
|
+ 'prefix' => 'module',
|
|
|
|
+ 'type' => '',
|
|
|
|
+ 'auto_start' => true,
|
|
|
|
+ ]);
|
|
// 控制器初始化
|
|
// 控制器初始化
|
|
$this->initialize();
|
|
$this->initialize();
|
|
}
|
|
}
|