transfer_response; if ($this->transfer_response instanceof ResponseInterface) { $response = $this->transfer_response->getBody()->getContents(); } try { return json_decode($response, true, JSON_THROW_ON_ERROR); } catch (JsonException|Exception $e) { return [ 'ResultCode' => 0, 'ErrorMsg' => '解析JSON失败', 'ErrorMsgDev' => $e->getMessage(), 'Result' => $data ]; } } }