[更新]修正接口SESSION判断符

This commit is contained in:
Anyon 2018-06-08 11:29:49 +08:00
parent 861f1a7ee5
commit b3ab1b468a

View File

@ -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', '');