forked from mirror/MCSM-Daemon
Feat: cn to en
This commit is contained in:
parent
3b131ff247
commit
c6bfea3cee
@ -38,7 +38,6 @@ export function configureEntityParams(self: any, args: any, key: string, typeFn?
|
||||
return;
|
||||
}
|
||||
|
||||
// 最后处理
|
||||
if (typeFn) {
|
||||
self[key] = typeFn(v);
|
||||
} else {
|
||||
|
@ -53,9 +53,7 @@ export function commandStringToArray(cmd: string) {
|
||||
|
||||
for (const index in cmdArray) {
|
||||
const element = cmdArray[index];
|
||||
// 去掉最外层的双引号
|
||||
if (element[0] === '"' && element[element.length - 1] === '"') cmdArray[index] = element.slice(1, element.length - 1);
|
||||
// 分号替换回来
|
||||
while (cmdArray[index].indexOf(QUOTES_KEY) != -1) cmdArray[index] = cmdArray[index].replace(QUOTES_KEY, '"');
|
||||
}
|
||||
|
||||
|
@ -66,12 +66,12 @@ export function navigation(socket: Socket) {
|
||||
routerApp.emitRouter(event as string, ctx, protocol.data);
|
||||
});
|
||||
}
|
||||
// 触发已连接事件路由
|
||||
// The connected event route is triggered
|
||||
const ctx = new RouterContext(null, socket, session);
|
||||
routerApp.emitRouter("connection", ctx, null);
|
||||
}
|
||||
|
||||
// 身份验证路由顺序必须是第一位装载,这些路由顺序均不可擅自改变
|
||||
// The authentication routing order must be the first load. These routing orders cannot be changed without authorization
|
||||
import "../routers/auth_router";
|
||||
import "../routers/passport_router";
|
||||
import "../routers/info_router";
|
||||
|
Loading…
Reference in New Issue
Block a user