From 391dffc04abfbc21798b2e1fc36cd700088313ad Mon Sep 17 00:00:00 2001 From: Joywayer Date: Wed, 12 Aug 2026 04:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E4=B8=83=E7=8E=8B=E6=8E=A5=E5=85=A5?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=EF=BC=9A=E5=9C=A8=20youle/app.js=20=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=20games/erqiwang/mod.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 此前 app.js 只加载了 games2/jinxianmahjong/mod.js,全仓平台侧对 erqiwang 零引用,导致 youle_erqiwang 模块从不创建、pack.route ="erqiwang" 无法命中三层路由,整个子游戏服务端运行时不可达。 按 server dev-guide README「接入新游戏还需在 server/youle/app.js 里加一行 min_loadJsFile 加载其 mod.js」补上注册(该文件是唯一允许 触碰的平台文件,属游戏注册接入点)。 Co-Authored-By: Claude Opus 5 (1M context) --- server/youle/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/youle/app.js b/server/youle/app.js index 31926ce..52b4652 100644 --- a/server/youle/app.js +++ b/server/youle/app.js @@ -12,18 +12,21 @@ min_loadJsFile("youle/server_room/mod.js", function(){ // min_loadJsFile("youle/server_synch/mod.js", function(){ //牛牛 min_loadJsFile("games2/jinxianmahjong/mod.js", function(){ +//二七王 +min_loadJsFile("games/erqiwang/mod.js", function(){ + - var do_restore = function(){ cls_youle_room_backup.restore(); } min_ontimeout(do_restore, 1000); - - + + // }); }); }); }); }); +}); var youle_app = youle_app || cls_app.new("youle", packet_face);