url; $logInfo = [ "param" => $this->data, "user" => Auth::id(), "ip" => request()->ip(), ]; $token = ""; try { $method = $this->method; $headers = ['Authorization' => 'Bearer '.$token]; if ($method=='post')$headers["Content-Type"] = 'application/json'; return Http::withHeaders($headers)->$method($url,$this->data); }catch (ConnectionException $e){ Log::warning("syrius:连接异常",$logInfo); }catch (\Exception $e){ Log::warning("syrius:请求异常",$logInfo); } return null; } }