mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-18 15:04:04 +08:00
Refactor: mid internationalized
This commit is contained in:
parent
f9e3c5d012
commit
4d30857f08
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user