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 [ 'status' => 200, 'success' => false, 'msg' => '解析JSON失败', 'msgDev' => $e->getMessage(), 'response' => $data ]; } } }