diff --git a/internal/logic/domain/friend/friend_service.go b/internal/logic/domain/friend/friend_service.go index fe607e6..b6f67b9 100644 --- a/internal/logic/domain/friend/friend_service.go +++ b/internal/logic/domain/friend/friend_service.go @@ -119,8 +119,13 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem "is_auto_add_friends": isAutoAddFriends, "user": resp.User, })) - if respFriend.User.IsAutoAddedFriends == 1 { - return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加") + + if description == "社交人脉圈添加好友" { + return FriendService.AgreeAddFriend(ctx, friendId, userId, description) + } else { + if respFriend.User.IsAutoAddedFriends == 1 { + return FriendService.AgreeAddFriend(ctx, friendId, userId, "系统自动添加") + } } } return nil