✨ feat(共鸣系统): 添加最强6人推送,不可养成拦截
This commit is contained in:
@@ -31,6 +31,7 @@ import { PvpSaveDataModel } from '../../../db/PvpSaveData';
|
||||
import { ArtifactModel } from '../../../db/Artifact';
|
||||
import { GVGVestigeRankModel } from '../../../db/GVGVestigeRank';
|
||||
import { GVGTeamModel } from '../../../db/GVGTeam';
|
||||
import { getResonanceDataMap } from '../../../services/role/resonanceService';
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
@@ -78,6 +79,9 @@ export class HeroHandler {
|
||||
let { hid, type } = msg;
|
||||
if(isHeroHidden(hid)) return resResult(STATUS.HERO_IS_HIDDEN);
|
||||
|
||||
let { dbResonanceMap } = await getResonanceDataMap(roleId);
|
||||
if(dbResonanceMap.has(hid)) return resResult(STATUS.RESONANCE__HID_NOT_CAN);
|
||||
|
||||
let addLv = 0;
|
||||
if (type == 1) {
|
||||
addLv = 1;
|
||||
@@ -440,6 +444,9 @@ export class HeroHandler {
|
||||
let { hid, shipId, type } = msg;
|
||||
if(isHeroHidden(hid)) return resResult(STATUS.HERO_IS_HIDDEN);
|
||||
|
||||
let { dbResonanceMap } = await getResonanceDataMap(roleId);
|
||||
if(dbResonanceMap.has(hid)) return resResult(STATUS.RESONANCE__HID_NOT_CAN);
|
||||
|
||||
let dicFriendShip = getFriendShipByIdAndLv(hid, shipId, 1);
|
||||
if(!dicFriendShip) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user