[更新]修正基础接口参数支持控制器

This commit is contained in:
Anyon 2018-05-16 15:37:24 +08:00
parent 6f898e5fdc
commit d77de72c4e

View File

@ -39,11 +39,13 @@ class BasicApi
*/
public function __construct()
{
// Cors跨域Options请求处理
Session::init(config('session.'));
ToolsService::corsOptionsHandler();
// Cors跨域会话切换及初始化
$this->request = app('request');
$sessionName = $this->request->header(session_name());
empty($sessionName) || session_id($sessionName);
$this->request = app('request');
}
/**