method() != 'POST') { return $next($request); } $accessUri = strtolower($request->controller() . '/' . $request->action()); if (!in_array($accessUri, $this->ablePost) && env('project.demo_env')) { return JsonService::fail('演示环境不支持修改数据,请下载源码本地部署体验'); } return $next($request); } }