From b744098841af543f1e67802b966d234914f339b9 Mon Sep 17 00:00:00 2001 From: aoxiang0070 <62634154+aoxiang0070@users.noreply.github.com> Date: Wed, 9 Sep 2020 15:58:22 +0800 Subject: [PATCH 1/2] Update Request.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixed: 忽略这些属性,增加忽略自身项 --- src/alibaba/nacos/request/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alibaba/nacos/request/Request.php b/src/alibaba/nacos/request/Request.php index db8e0e2..b861033 100644 --- a/src/alibaba/nacos/request/Request.php +++ b/src/alibaba/nacos/request/Request.php @@ -35,7 +35,7 @@ abstract class Request * * @var array */ - protected $standaloneParameterList = ["uri", "verb"]; + protected $standaloneParameterList = ["uri", "verb", "standaloneParameterList"]; /** * 发起请求,做返回值异常检查 @@ -110,4 +110,4 @@ public function setUri($uri) $this->uri = $uri; } -} \ No newline at end of file +} From 43f8f0083fe25927dd5ead7a60a4b722615c3e87 Mon Sep 17 00:00:00 2001 From: aoxiang0070 <62634154+aoxiang0070@users.noreply.github.com> Date: Thu, 10 Sep 2020 14:42:14 +0800 Subject: [PATCH 2/2] Update InstanceList.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixed: 增加getName、setName --- src/alibaba/nacos/model/InstanceList.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/alibaba/nacos/model/InstanceList.php b/src/alibaba/nacos/model/InstanceList.php index 61b1268..7f53225 100644 --- a/src/alibaba/nacos/model/InstanceList.php +++ b/src/alibaba/nacos/model/InstanceList.php @@ -17,6 +17,7 @@ class InstanceList extends Model protected $lastRefTime; //long protected $env; //String protected $clusters; + protected $name; /** * @return mixed @@ -165,5 +166,21 @@ public function setClusters($clusters) { $this->clusters = $clusters; } //String + + /** + * @return mixed + */ + public function getName() + { + return $this->name; + } + + /** + * @param mixed $name + */ + public function setName($name) + { + $this->name = $name; + } -} \ No newline at end of file +}