$request->method(), 'url'=>$request->url(), 'parameter'=>$request->all()]); // // //api请求验证 // if (config('console.checkApiAuth')) { // ApiSignFacade::setLog($typeName.'开始', $startTime, ['sign'=>$request->header('sign'), 'random'=>$request->header('random'), 'timestamp'=>$request->header('timestamp')]); // // $auth = ApiSignFacade::auth($request->header('sign'), $request->header('random'), $request->header('timestamp')); // // if ($auth->getData()->code != BaseRepository::SUCCESS_CODE) { // $auth['ip'] = $request->ip(); // ApiSignFacade::setLog($typeName.'失败', $startTime, [$auth]); // return response()->json($auth); // } // } // // ApiSignFacade::setLog($typeName.'通过', $startTime, ['sign'=>$request->header('sign'), 'random'=>$request->header('random'), 'timestamp'=>$request->header('timestamp')]); return $next($request); } }