baseUrl = config('services.mono.url'); $this->http = Http::timeout(config('services.mono.timeout', 30)) ->withoutVerifying(); } /** * 测试连接 */ public function testConnection(): Response { return $this->http->get($this->baseUrl . '/health'); } /** * 更新消息分发状态 */ public function updateDispatch(array $data): Response { return $this->http->post($this->baseUrl . '/rpc/datadispatch/message/update-dispatch', $data); } }