|
@@ -16,12 +16,8 @@ class CompanyAuth
|
|
|
|
|
|
public function handle(Request $request, Closure $next)
|
|
|
{
|
|
|
- $service = new ConfigService;
|
|
|
- $params = $request->except('_url');
|
|
|
- $config = $service->findCompanyAuthConfig($params['app_id']);
|
|
|
- $this->setGlobalConfig($config);
|
|
|
- return $next($request);
|
|
|
$app_id = $request->get('app_id', '');
|
|
|
+ $service = new ConfigService;
|
|
|
$validate = new CompanyAuthRequest($request);
|
|
|
$validate->validate();
|
|
|
$client_ip = CommonHelper::GetClientIp();
|