✨ feat(服务器): 服务器命名路径修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user