鹿和sa0ChunLuyu 3 weeks ago
parent a114c2cf3a
commit 01c9b43c73

@ -38,9 +38,7 @@ public function handle(Request $request, Closure $next)
// dd($response); // dd($response);
$response_data = []; $response_data = [];
if ($response instanceof \Illuminate\Http\JsonResponse) { if ($response instanceof \Illuminate\Http\JsonResponse) {
$response_data = $response->getData(); //返回data,json格式 $response_data = $response->getData();
} else {
$response_data = $response->getContent();
} }
$post_data=$request->post(); //post请求数据 $post_data=$request->post(); //post请求数据
$get_data=$request->query(); //get请求 $get_data=$request->query(); //get请求

Loading…
Cancel
Save