diff --git a/game-server/app/servers/role/handler/friendHandler.ts b/game-server/app/servers/role/handler/friendHandler.ts index 7a60baffc..7e16e4523 100644 --- a/game-server/app/servers/role/handler/friendHandler.ts +++ b/game-server/app/servers/role/handler/friendHandler.ts @@ -240,7 +240,7 @@ export class FriendHandler { list.push(param); if (hisOnlineInfo.isOnline) { 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); diff --git a/shared/consts/constModules/chatConst.ts b/shared/consts/constModules/chatConst.ts index c467db704..1daa52df7 100644 --- a/shared/consts/constModules/chatConst.ts +++ b/shared/consts/constModules/chatConst.ts @@ -131,6 +131,7 @@ export const PUSH_ROUTE = { GUILD_INVITE: 'onGuildInvite', WISH_GOODS_RECEIVE: 'onWishGoodsRecive', FRIEND_APPLY: 'onFriendApply', + FRIEND_ADD: 'onFriendAdd', FRIEND_SEND_HEART: 'onFriendSendHeart', SET_BLACK: 'onSetBlack', PLAY_TIME: 'onPlayTime',