header('from-agent') && Route::currentRouteName() != 'getUserCardPic' && Route::currentRouteName() != 'getCompanyPic') { // return Response::json([ // 'status' => 'Unknown Api Request', // 'status_code' => 404, // 'message' => '未知的程序接口', // ], 404); // } return $next($request); } }