Commit c2f14d4d by 杨树贤

登陆校验

parent 41d9316c
Showing with 2 additions and 2 deletions
......@@ -21,8 +21,8 @@ class CheckLogin
{
$login = config('website.login');
if (empty($request->input('token'))) {
$userId = $request->cookie('oa_user_id');
$skey = $request->cookie('oa_skey');
$userId = $request->cookie('oa_user_id') ?: $request->header('oa_user_id');
$skey = $request->cookie('oa_skey') ?: $request->header('oa_skey');
$isApi = false;
$hasApiRoute = strpos($request->path(), 'api/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment