mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-24 15:14:01 +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.cookies.set("MCSManager", "Copyright 2022 https://github.com/mcsmanager");
|
||||||
ctx.response.set("X-Powered-By", "MCSManager");
|
ctx.response.set("X-Powered-By", "https://github.com/mcsmanager");
|
||||||
|
|
||||||
// 发送Error类时序列化并显示
|
// 发送Error类时序列化并显示
|
||||||
if (ctx.body instanceof Error) {
|
if (ctx.body instanceof Error) {
|
||||||
|
@ -24,7 +24,7 @@ import Koa from "koa";
|
|||||||
// Failed callback
|
// Failed callback
|
||||||
function verificationFailed(ctx: Koa.ParameterizedContext) {
|
function verificationFailed(ctx: Koa.ParameterizedContext) {
|
||||||
ctx.status = 400;
|
ctx.status = 400;
|
||||||
ctx.body = "错误请求:请求参数不正确";
|
ctx.body = "Request parameters are incorrect";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type check
|
// Type check
|
||||||
|
Loading…
Reference in New Issue
Block a user