好友:修复同意好友的时候推送错误问题
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user