|
...
|
...
|
@@ -70,8 +70,8 @@ class LoginAuthMiddleware |
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if($menu_id !== false){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('ceshi', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($groupInfo['rights'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id['id'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($groupInfo, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if(strpos(','.$groupInfo['rights'].',', ','.$menu_id['id'].',') === false){
|
|
|
|
return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户没有权限']);
|
|
|
|
}
|
...
|
...
|
|