This commit is contained in:
xy
2026-03-13 01:38:40 +00:00
parent e6e4f88257
commit 28855885cd
311 changed files with 89544 additions and 94350 deletions
+4 -3
View File
@@ -1,11 +1,12 @@
import { STATUS } from '@consts';
import { ServerlistModel } from '@db/Serverlist';
import { nowSeconds } from 'app/pubUtils/timeUtil';
import { checkWhiteList } from 'app/pubUtils/sysUtil';
import { nowSeconds } from '@pubUtils/timeUtil';
import { checkWhiteList } from '@pubUtils/sysUtil';
import { RoleModel } from '@db/Role';
import { Context } from 'egg';
module.exports = () => {
return async function checkMainten(ctx, next) {
return async function checkMainten(ctx: Context, next: () => Promise<any>) {
const { serverId, version } = ctx.request.body;
if (serverId) {
let server = await ServerlistModel.findByServerId(serverId);