Commit 83230fd9 by lujunyi

Merge branch 'hotfix-8' into develop

parents 66fb75d5 7e7af71a
......@@ -15,7 +15,7 @@ class CheckRoleChangeMiddleware
public function handle($request, Closure $next)
{
$lastLoginType = auth('api')->user()->last_login_type;
$requestLastLoginType = $request->headers->get('last_login_type') ?: 0;
$requestLastLoginType = $request->headers->get('last-login-type') ?: 0;
if ($lastLoginType != $requestLastLoginType) {
return response()->json(['status' => false, 'code' => 600, 'message' => '您的角色切换错误~', 'data' => []]);
}
......
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