feat(服务器): 服务器命名路径修改

This commit is contained in:
luying
2023-04-12 19:32:52 +08:00
parent 012501c8d0
commit 6a4c9c5ae9
8 changed files with 6053 additions and 6042 deletions

View File

@@ -4,7 +4,7 @@ import { SERVER_STATUS } from '../consts';
import { CreateServerParam } from '../domain/backEndField/params';
import { RegionType } from './Region';
import { nowSeconds } from '../pubUtils/timeUtil';
import { gameData } from '../pubUtils/data';
import { getDicServerName } from '../pubUtils/data';
export class Maintenance {
@@ -127,8 +127,9 @@ export default class Serverlist extends BaseModel {
}
public static async newServer(params: CreateServerParam, region: RegionType, serverId: number, uid = 1 ) {
let dicServerName = gameData.serverNames.get(serverId);
let { prefix, id: regionId, env } = region;
let dicServerName = getDicServerName(env, serverId);
if(!dicServerName) return;
// 分大区
let { openTime, stopRegisterTime: hour, activityGroupId } = params;
let { sname: name, groupId, groupName } = dicServerName;