此前 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>
33 lines
801 B
JavaScript
33 lines
801 B
JavaScript
///////////////////////////////////////////////////
|
|
////////////////////友乐游戏app////////////////////
|
|
///////////////////////////////////////////////////
|
|
|
|
//平台服务器
|
|
min_loadJsFile("youle/server_platform/mod.js", function(){
|
|
//运营商服务器
|
|
min_loadJsFile("youle/server_agent/mod.js", function(){
|
|
//房间服务器
|
|
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);
|