mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修正接口SESSION判断符
This commit is contained in:
parent
861f1a7ee5
commit
b3ab1b468a
@ -33,7 +33,7 @@ class ToolsService
|
||||
*/
|
||||
public static function corsOptionsHandler()
|
||||
{
|
||||
if (PHP_SESSION_ACTIVE === session_status()) {
|
||||
if (PHP_SESSION_ACTIVE !== session_status()) {
|
||||
Session::init(config('session.'));
|
||||
}
|
||||
$token = request()->header('token', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user