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,