Fix: 修复参数错误细节

This commit is contained in:
Suwings 2022-08-04 17:54:59 +08:00
parent 9538e2aab0
commit e510b8e1b5
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class Config {
public key = builderPassword();
public maxFileTask = 2;
public maxZipFileSize = 60;
public language = "";
public language = "zh_cn";
}
// 守护进程配置类

View File

@ -44,7 +44,7 @@ routerApp.use(async (event, ctx, _, next) => {
routerApp.on("auth", (ctx, data) => {
if (data === globalConfiguration.config.key) {
// 身份认证通过,注册会话为可信会话
logger.info($t("auth_router.access"), { id: ctx.socket.id, address: ctx.socket.handshake.address });
logger.info($t("auth_router.access", { id: ctx.socket.id, address: ctx.socket.handshake.address }));
loginSuccessful(ctx, data);
protocol.msg(ctx, "auth", true);
} else {