二七王接入平台:在 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:
@@ -12,6 +12,8 @@ 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(){
|
||||
@@ -25,5 +27,6 @@ min_loadJsFile("games2/jinxianmahjong/mod.js", function(){
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
var youle_app = youle_app || cls_app.new("youle", packet_face);
|
||||
|
||||
Reference in New Issue
Block a user