|
...
|
...
|
@@ -23,7 +23,7 @@ class LoginAuthMiddleware |
|
|
|
*/
|
|
|
|
public function handle(Request $request, Closure $next)
|
|
|
|
{
|
|
|
|
$manage = Cache::get(Common::MANAGE_TOKEN . $request->header('token'));
|
|
|
|
$manage = LoginLogic::manage();
|
|
|
|
if (!$manage) {
|
|
|
|
return response(['code'=> Code::USER_LOGIN_ERROE,'message'=>'当前用户未登录']);
|
|
|
|
}
|
...
|
...
|
|