webhook = $webhook; } protected function request(array $data): bool { if (empty($this->webhook)) return false; try { $response = Http::postRequest($this->webhook, json_encode($data)); $result = json_decode($response, true); return ($result['errcode'] ?? -1) === 0 || ($result['code'] ?? -1) === 0; } catch (\Throwable $e) { return false; } } }