From 867edb80633c9f265cd579a2d489dddf5fbac509 Mon Sep 17 00:00:00 2001 From: xwpd <514261300@qq.com> Date: Wed, 17 Mar 2021 16:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCommunicator=E7=9A=84$=5Fstat?= =?UTF-8?q?F=E4=BC=9A=E4=B8=BAnull=E7=9A=84=E9=94=99=E8=AF=AF=20=E5=9C=A8?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E4=BE=9D=E8=B5=96phptars/tars-client=20?= =?UTF-8?q?=E5=92=8C=20phptars/tars-server=20=E6=97=B6=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=9D=9Etars=E8=BF=90=E8=A1=8C=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=97=B6=EF=BC=88=E6=AF=94=E5=A6=82=E9=98=9F=E5=88=97=E7=AD=89?= =?UTF-8?q?=E6=83=85=E5=86=B5=EF=BC=89=EF=BC=8C=E4=BD=BF=E7=94=A8tars?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=BC=9A=E5=87=BA=E7=8E=B0=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=8C?= =?UTF-8?q?Communicator=E7=9A=84$=5FstatF=E4=B8=BAnull=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=88=90=E5=8A=9F=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- src/Communicator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/Communicator.php diff --git a/composer.json b/composer.json index 712b0aa..91858d9 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "phptars/tars-client", "description": "tars的php-client能力", - "version":"0.3.0", + "version":"0.3.1", "authors": [ { "name": "Chen Liang", diff --git a/src/Communicator.php b/src/Communicator.php old mode 100644 new mode 100755 index 23fe34a..43d4094 --- a/src/Communicator.php +++ b/src/Communicator.php @@ -66,7 +66,7 @@ class Communicator $this->_queryF = new QueryFWrapper($this->_locator, $this->_routeSocketMode, $this->_refreshEndpointInterval); $this->_routeInfo = $this->_queryF->findObjectById($this->_servantName); // 初始化上报组件,只在指定了主控的前提下 - if(class_exists("\Tars\App")) { + if(class_exists("\Tars\App") && \Tars\App::getStatF()) { $this->_statF = \Tars\App::getStatF(); } else { -- Gitee