修改部分声明;

This commit is contained in:
augushong
2021-11-30 09:13:51 +08:00
parent ce577d9cfa
commit 03991b7159
7 changed files with 12 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ class CheckAdmin
!$check && $this->error('无权限访问');
// 判断是否为演示环境
if(env('easyadmin.is_demo', false) && $request->isPost()){
if(env('adminsystem.is_demo', false) && $request->isPost()){
$this->error('演示环境下不允许修改');
}

View File

@@ -25,7 +25,7 @@ class CsrfMiddleware
public function handle(Request $request, \Closure $next)
{
if (env('EASYADMIN.IS_CSRF', true)) {
if (env('adminsystem.IS_CSRF', true)) {
if (!in_array($request->method(), ['GET', 'HEAD', 'OPTIONS'])) {
// 跨域校验