二七王接入平台:在 youle/app.js 注册 games/erqiwang/mod.js
此前 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) <noreply@anthropic.com>
This commit is contained in:
+6
-3
@@ -12,18 +12,21 @@ min_loadJsFile("youle/server_room/mod.js", function(){
|
|||||||
// min_loadJsFile("youle/server_synch/mod.js", function(){
|
// min_loadJsFile("youle/server_synch/mod.js", function(){
|
||||||
//牛牛
|
//牛牛
|
||||||
min_loadJsFile("games2/jinxianmahjong/mod.js", function(){
|
min_loadJsFile("games2/jinxianmahjong/mod.js", function(){
|
||||||
|
//二七王
|
||||||
|
min_loadJsFile("games/erqiwang/mod.js", function(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var do_restore = function(){
|
var do_restore = function(){
|
||||||
cls_youle_room_backup.restore();
|
cls_youle_room_backup.restore();
|
||||||
}
|
}
|
||||||
min_ontimeout(do_restore, 1000);
|
min_ontimeout(do_restore, 1000);
|
||||||
|
|
||||||
|
|
||||||
// });
|
// });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
var youle_app = youle_app || cls_app.new("youle", packet_face);
|
var youle_app = youle_app || cls_app.new("youle", packet_face);
|
||||||
|
|||||||
Reference in New Issue
Block a user