From 4601da469beb90720dc0fd48d0e44cf987e460ef Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 9 Feb 2023 19:32:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Cluster/Weight.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/Cluster/Weight.php b/app/Console/Commands/Cluster/Weight.php index d7a2478..a17608f 100644 --- a/app/Console/Commands/Cluster/Weight.php +++ b/app/Console/Commands/Cluster/Weight.php @@ -31,7 +31,12 @@ public function handle(): int { $weight = $this->argument('weight'); - $this->info("当前节点的权重为:{$weight}"); + $this->info("当前节点的权重为:{$weight}。"); + if ($weight == "0") { + $this->warn('请求将不再调度到此节点。'); + } else { + $this->info('将开始接受请求。'); + } ClusterSupport::updateThisNode([ 'weight' => $weight,