diff --git a/internal/logic/domain/friend/friend_service.go b/internal/logic/domain/friend/friend_service.go index 9ba611c..e1e0140 100644 --- a/internal/logic/domain/friend/friend_service.go +++ b/internal/logic/domain/friend/friend_service.go @@ -183,6 +183,12 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 Nickname: resp.User.Nickname, AvatarUrl: resp.User.AvatarUrl, }, true) + utils.FilePutContents("push_AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ + "friend_id": userId, + "friend_nick_name": resp.User.Nickname, + "friend_avatar_url": resp.User.AvatarUrl, + "err": err, + })) if err != nil { return err } diff --git a/pkg/proto/push.ext.proto b/pkg/proto/push.ext.proto index 6cbaf8b..4a31976 100644 --- a/pkg/proto/push.ext.proto +++ b/pkg/proto/push.ext.proto @@ -8,6 +8,7 @@ enum PushCode { PC_ADD_DEFAULT = 0; PC_ADD_FRIEND = 100; // 添加好友请求 + PC_AGREE_ADD_FRIEND = 101; // 同意添加好友 PC_UPDATE_GROUP = 110; // 更新群组