获得试炼奖励
This commit is contained in:
@@ -5,6 +5,7 @@ import { resResult } from "../pubUtils/util";
|
||||
import { STATUS, FUNC_OPT_TYPE } from "../consts";
|
||||
import { eventOnPlayerLvUp } from '../services/playerEventService';
|
||||
import { checkesetTrain } from '../services/guildTrainService';
|
||||
import { getUserGuildWithRefActive } from '../services/guildService';
|
||||
// 开启功能
|
||||
export async function switchOnFunc(roleId: string, type: number, param: number, session: (BackendSession|FrontendSession)) {
|
||||
|
||||
@@ -35,4 +36,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);
|
||||
await getUserGuildWithRefActive(role.roleId, '', true)
|
||||
}
|
||||
Reference in New Issue
Block a user