From 338bb31df79ec207e9b4440225029959e1bd6ce1 Mon Sep 17 00:00:00 2001 From: Liu Date: Thu, 3 Apr 2025 11:51:09 +0800 Subject: [PATCH] Update ConfigQueryResponse.php Fixd: Nacos config center not returning encryptedDataKey when config encryption is not enable --- 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..eba9100 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 = $json['encryptedDataKey'] ?? ''; $this->contentType = $json['contentType']; $this->md5 = $json['md5']; $this->lastModified = $json['lastModified'];