Commit 3ed2e464 by Future

vip加好友限制放开

parent 6ad93cc9
......@@ -134,13 +134,13 @@ public class ImFriendController extends BaseController {
List<ImFriendBaseDto> friends = imFriendService.getFriends(currentClient);
if (isVip){
// 是vip
if (friends.size()>=500){
throw new BusinessException("vip最多只能加500个好友");
if (friends.size()>=1000){
throw new BusinessException("vip最多只能加1000个好友");
}
}else {
// 不是vip
if (friends.size()>=3){
throw new BusinessException("非vip最多只能加3个好友");
if (friends.size()>=1000){
throw new BusinessException("非vip最多只能加1000个好友");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment