logger = $loggerFactory->get('default'); } /** * test * @param array $data * @return array */ public function test(array $data): array { var_dump($data, $this->serviceName, $this->protocol); $this->logger->info('请求数据: ' . json_encode($data)); return $this->__request(__FUNCTION__, $data); } }