炼器堂
This commit is contained in:
@@ -4,6 +4,7 @@ import { RoleModel } from "../db/Role";
|
||||
import { resResult } from "../pubUtils/util";
|
||||
import { STATUS, FUNC_OPT_TYPE } from "../consts";
|
||||
import { eventOnPlayerLvUp } from '../services/playerEventService';
|
||||
import { checkesetTrain } from '../services/guildTrainService';
|
||||
// 开启功能
|
||||
export async function switchOnFunc(roleId: string, type: number, param: number, session: (BackendSession|FrontendSession)) {
|
||||
|
||||
@@ -33,4 +34,5 @@ export async function switchOnFunc(roleId: string, type: number, param: number,
|
||||
|
||||
export async function chackFunOpenWhenLogin(role: any, session: BackendSession|FrontendSession) {
|
||||
await switchOnFunc(role.roleId, FUNC_OPT_TYPE.LEVEL_UP, role.lv, session);
|
||||
await checkesetTrain(role.roleId, role.serverId);
|
||||
}
|
||||
Reference in New Issue
Block a user