Feat: cn to en

This commit is contained in:
Unitwk 2022-08-22 11:42:14 +08:00 committed by GitHub
parent 3b131ff247
commit c6bfea3cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -38,7 +38,6 @@ export function configureEntityParams(self: any, args: any, key: string, typeFn?
return;
}
// 最后处理
if (typeFn) {
self[key] = typeFn(v);
} else {

View File

@ -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, '"');
}

View File

@ -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";