全部同意好友申请修改

back_recharge
lvxinran 2019-12-03 16:36:10 +08:00
parent 0ccb33b366
commit 83338c7510
1 changed files with 4 additions and 3 deletions

View File

@ -393,13 +393,14 @@ public class FriendLogic {
if(friendManager.getBlackFriends().contains(applyfriendId)){ if(friendManager.getBlackFriends().contains(applyfriendId)){
continue; continue;
} }
if (friends.size() >= maxFriends){ if (friends.size()+nums>= maxFriends){
// throw new ErrorCodeException(ErrorCode.FRIENDS_MAX);
continue; continue;
} }
if (friendFriendList.size()>= maxFriends){ if (friendFriendList.size()>= maxFriends){
continue; continue;
} }
friendManager.setApplyFriends(new CopyOnWriteArrayList<>()); friendManager.delApplyFriend(applyfriendId);
friendfriendManager.addFriendId(uid); friendfriendManager.addFriendId(uid);
friendManager.addFriendId(applyfriendId); friendManager.addFriendId(applyfriendId);
UserManager.getUser(applyfriendId).getFriendManager().delMyApplyFriend(uid); UserManager.getUser(applyfriendId).getFriendManager().delMyApplyFriend(uid);