正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -70,8 +70,8 @@ class LoginAuthMiddleware | @@ -70,8 +70,8 @@ class LoginAuthMiddleware | ||
| 70 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id, true) . PHP_EOL, FILE_APPEND); | 70 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id, true) . PHP_EOL, FILE_APPEND); |
| 71 | if($menu_id !== false){ | 71 | if($menu_id !== false){ |
| 72 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export('ceshi', true) . PHP_EOL, FILE_APPEND); | 72 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export('ceshi', true) . PHP_EOL, FILE_APPEND); |
| 73 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($groupInfo['rights'], true) . PHP_EOL, FILE_APPEND); | ||
| 74 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id['id'], true) . PHP_EOL, FILE_APPEND); | 73 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($groupInfo, true) . PHP_EOL, FILE_APPEND); |
| 74 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($menu_id, true) . PHP_EOL, FILE_APPEND); | ||
| 75 | if(strpos(','.$groupInfo['rights'].',', ','.$menu_id['id'].',') === false){ | 75 | if(strpos(','.$groupInfo['rights'].',', ','.$menu_id['id'].',') === false){ |
| 76 | return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户没有权限']); | 76 | return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户没有权限']); |
| 77 | } | 77 | } |
-
请 注册 或 登录 后发表评论