添加好友提示

lvxinran 2020-12-30 00:25:26 +08:00
parent a520eb96db
commit 697e2892a8
1 changed files with 5 additions and 1 deletions

View File

@ -259,7 +259,11 @@ public class FriendLogic {
continue;
}
if (friends1.size() >= maxFriends){
throw new ErrorCodeException(ErrorCode.FRIENDS_SIDE_MAX);
if(inviteUidsList.size()>1){
throw new ErrorCodeException(ErrorCode.FRIENDS_SIDE_MAX);
}else{
continue;
}
}
if (applyFriends.size()>= maxApplyFriends){
applyFriends.remove(0);