|
@@ -119,8 +119,13 @@ func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, rem |
|
|
"is_auto_add_friends": isAutoAddFriends, |
|
|
"is_auto_add_friends": isAutoAddFriends, |
|
|
"user": resp.User, |
|
|
"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 |
|
|
return nil |
|
|