mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]接口Api会话Token增加
This commit is contained in:
parent
a6800233b9
commit
a46c064d98
@ -39,11 +39,11 @@ class BasicApi
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
ToolsService::corsOptionsHandler();
|
||||
$this->request = app('request');
|
||||
Session::init(config('session.'));
|
||||
$sessionId = $this->request->header(session_name());
|
||||
!empty($sessionId) && session_id($sessionId);
|
||||
ToolsService::corsOptionsHandler();
|
||||
$sessionName = $this->request->header(session_name());
|
||||
empty($sessionName) || session_id($sessionName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user