From d88e50b8f11f09fe531bfa467745b62c8eb78cf2 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 28 Feb 2026 17:54:13 +0800
Subject: [PATCH] 名片聊天实时同步

---
 admin/config/gateway_worker.php |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/admin/config/gateway_worker.php b/admin/config/gateway_worker.php
index ed035ce..c7eebea 100644
--- a/admin/config/gateway_worker.php
+++ b/admin/config/gateway_worker.php
@@ -15,7 +15,7 @@
     // 扩展自身需要的配置
     'protocol'              => 'websocket', // 协议 支持 tcp udp unix http websocket text
     'host'                  => '0.0.0.0', // 监听地址
-    'port'                  => 2348, // 监听端口
+    'port'                  => 2358, // 监听端口
     'socket'                => '', // 完整监听地址
     'context'               => [], // socket 上下文选项
     'register_deploy'       => true, // 是否需要部署register
@@ -27,20 +27,26 @@
     'registerAddress'       => '127.0.0.1:1236',
 
     // Gateway配置
-    'name'                  => 'zhuolaiM',
+    'name'                  => 'zhuolaiMLMH',
     'count'                 => 1,
     'lanIp'                 => '127.0.0.1',
     'startPort'             => 2000,
     'daemonize'             => false,
+    'pidFile'               => runtime_path() . 'gateway_worker.pid',
     'pingInterval'          => 30,
     'pingNotResponseLimit'  => 1,
     'pingData'              => '',
 
     // BusinsessWorker配置
     'businessWorker'        => [
-        'name'         => 'BusinessWorker',
+        'name'         => 'BusinessWorker_lmh',
         'count'        => 1,
         'eventHandler' => '\app\gateway\Events',
     ],
 
+    // Register配置pid文件
+    'registerPidFile'       => runtime_path() . 'gateway_register.pid',
+    'gatewayPidFile'        => runtime_path() . 'gateway_gateway.pid',
+    'businessWorkerPidFile' => runtime_path() . 'gateway_business.pid',
+
 ];

--
Gitblit v1.9.2