$rocket]); $payload = $rocket->getPayload(); $rocket->setRadar(new Request( get_radar_method($payload) ?? 'POST', get_radar_url($payload), get_radar_headers($payload) ?? $this->getHeaders(), get_radar_body($payload), )); Logger::info('[AddRadarPlugin] 插件装载完毕', ['rocket' => $rocket]); return $next($rocket); } protected function getHeaders(): array { return [ 'User-Agent' => 'yansongda/artful-v1', 'Content-Type' => 'application/json;charset=utf-8', ]; } }