Refactor: mid internationalized

This commit is contained in:
Suwings 2022-07-26 11:31:08 +08:00
parent f9e3c5d012
commit 4d30857f08
2 changed files with 3 additions and 3 deletions

View File

@ -52,8 +52,8 @@ export async function middleware(
}
// 产品信息标识
ctx.cookies.set("MCSManager", "Copyright 2021 Suwings");
ctx.response.set("X-Powered-By", "MCSManager");
ctx.cookies.set("MCSManager", "Copyright 2022 https://github.com/mcsmanager");
ctx.response.set("X-Powered-By", "https://github.com/mcsmanager");
// 发送Error类时序列化并显示
if (ctx.body instanceof Error) {

View File

@ -24,7 +24,7 @@ import Koa from "koa";
// Failed callback
function verificationFailed(ctx: Koa.ParameterizedContext) {
ctx.status = 400;
ctx.body = "错误请求:请求参数不正确";
ctx.body = "Request parameters are incorrect";
}
// Type check