全部同意好友申请修改
parent
0ccb33b366
commit
83338c7510
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue