From e4d16bf41249681a3627d58f002b855f99f7e3cc Mon Sep 17 00:00:00 2001 From: Joywayer Date: Sun, 28 Jun 2026 16:52:38 +0800 Subject: [PATCH] =?UTF-8?q?docs(framework):=20=E6=BE=84=E6=B8=85=20SERVER?= =?UTF-8?q?=5FKEYS=20=E6=9C=89=E6=84=8F=E5=8F=AA=E5=8F=96=20*=5Fserver=5Ft?= =?UTF-8?q?cp(WebSocket-only)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 最终审查指出 spec 文本列了 *_server_http 而代码注释称逐字一致,易致误解。补注说明本期 WebSocket-only、HTTP 传输模式(netType==1)超范围。 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../YouleNexus/assets/framework/config/remote-config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cocoscreator_projects/YouleNexus/assets/framework/config/remote-config.ts b/cocoscreator_projects/YouleNexus/assets/framework/config/remote-config.ts index 9bdfa2a..8d2ed49 100644 --- a/cocoscreator_projects/YouleNexus/assets/framework/config/remote-config.ts +++ b/cocoscreator_projects/YouleNexus/assets/framework/config/remote-config.ts @@ -46,7 +46,11 @@ export function getParam(config: RemoteConfig, key: string, id: ChannelIdentity) return value; } -/** 连接相关参数键(逐字一致)。优先级即数组顺序。 */ +/** + * 连接相关参数键(键名逐字一致原 getConfig_Succ)。优先级即数组顺序。 + * 仅取 *_server_tcp:YouleNexus 为 WebSocket-only(原 netType==0 分支); + * 原工程的 *_server_http 属 HTTP 传输模式(netType==1),本期不在范围,故有意省略。 + */ const SERVER_KEYS = ['player_server_tcp', 'visitor_server_tcp', 'game_server_tcp'] as const; function toWs(addr: string): string {