From 22b96d7e4b4a6ce0948f93641b6569fe508de247 Mon Sep 17 00:00:00 2001 From: taobali32 <30717763+taobali32@users.noreply.github.com> Date: Thu, 17 Jul 2025 00:56:27 +0800 Subject: [PATCH] Update ConfigQueryResponse.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容 r-nacos, r-nacos返回的类型是 NULL --- src/Protobuf/Response/ConfigQueryResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protobuf/Response/ConfigQueryResponse.php b/src/Protobuf/Response/ConfigQueryResponse.php index 0e8ed09..6f64d3e 100644 --- a/src/Protobuf/Response/ConfigQueryResponse.php +++ b/src/Protobuf/Response/ConfigQueryResponse.php @@ -29,7 +29,7 @@ class ConfigQueryResponse extends Response public function __construct(array $json) { $this->content = $json['content']; - $this->encryptedDataKey = $json['encryptedDataKey']; + $this->encryptedDataKey = (string)$json['encryptedDataKey']; $this->contentType = $json['contentType']; $this->md5 = $json['md5']; $this->lastModified = $json['lastModified'];