logger = $loggerFactory->get('log'); } /** * 获取RPC调用返回结果 * * @param array $result * @return array */ public function getServiceResult(array $result) : array { if ($result['code'] === 200) { return $result['data']; } throw new BusinessException($result['code'], $result['msg']); } }