减少全服推送
This commit is contained in:
@@ -630,8 +630,8 @@ export class FriendHandler {
|
||||
let relation = getRecommendType(myRelation, roleId, hisRoleId);
|
||||
const msgData = await createPrivateMsg(roleId, roleName, MSG_TYPE.RICH_TEXT, MSG_SOURCE.PRIVATE_SEND_GIFT, JSON.stringify({ id, count }), hisRoleId, null, relation);
|
||||
await pushMsgToRole(msgData);
|
||||
let hisRole = <RoleType>curFriend.role;
|
||||
await pushPresent(roleId, roleName, serverId, hisRole.roleName, id);
|
||||
// let hisRole = <RoleType>curFriend.role;
|
||||
// await pushPresent(roleId, roleName, serverId, hisRole.roleName, id);
|
||||
}
|
||||
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
|
||||
@@ -243,7 +243,7 @@ export class HeroHandler {
|
||||
await SchoolModel.updateByHid(roleId, hid, { hid, star: update.quality });
|
||||
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.QUALITY, roleId, serverId, sid, hid, update, { hero });
|
||||
await checkTaskInHeroQUalityUp(serverId, roleId, sid, curHero);
|
||||
pushHeroQualityUpMsg(roleId, roleName, serverId, curHero);
|
||||
// pushHeroQualityUpMsg(roleId, roleName, serverId, curHero);
|
||||
return resResult(STATUS.SUCCESS, { curHero: pick(curHero, ['hid', 'quality']) });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user