好友:修复同意好友的时候推送错误问题

This commit is contained in:
luying
2022-06-15 16:36:08 +08:00
parent 7d0f6e0004
commit e6c22d82ec
2 changed files with 2 additions and 1 deletions
@@ -240,7 +240,7 @@ export class FriendHandler {
list.push(param); list.push(param);
if (hisOnlineInfo.isOnline) { if (hisOnlineInfo.isOnline) {
let myParam = await getMyParamAsFriend(friendShip, role, friend.roleId); let myParam = await getMyParamAsFriend(friendShip, role, friend.roleId);
sendMessageToUserWithSuc(friend.roleId, PUSH_ROUTE.FRIEND_APPLY, { friend: myParam }, hisOnlineInfo.sid); sendMessageToUserWithSuc(friend.roleId, PUSH_ROUTE.FRIEND_ADD, { friend: myParam }, hisOnlineInfo.sid);
} }
resultApplyCodeList.push(apply.applyCode); resultApplyCodeList.push(apply.applyCode);
+1
View File
@@ -131,6 +131,7 @@ export const PUSH_ROUTE = {
GUILD_INVITE: 'onGuildInvite', GUILD_INVITE: 'onGuildInvite',
WISH_GOODS_RECEIVE: 'onWishGoodsRecive', WISH_GOODS_RECEIVE: 'onWishGoodsRecive',
FRIEND_APPLY: 'onFriendApply', FRIEND_APPLY: 'onFriendApply',
FRIEND_ADD: 'onFriendAdd',
FRIEND_SEND_HEART: 'onFriendSendHeart', FRIEND_SEND_HEART: 'onFriendSendHeart',
SET_BLACK: 'onSetBlack', SET_BLACK: 'onSetBlack',
PLAY_TIME: 'onPlayTime', PLAY_TIME: 'onPlayTime',