Commit 3ed2e464 by Future

vip加好友限制放开

parent 6ad93cc9
...@@ -134,13 +134,13 @@ public class ImFriendController extends BaseController { ...@@ -134,13 +134,13 @@ public class ImFriendController extends BaseController {
List<ImFriendBaseDto> friends = imFriendService.getFriends(currentClient); List<ImFriendBaseDto> friends = imFriendService.getFriends(currentClient);
if (isVip){ if (isVip){
// 是vip // 是vip
if (friends.size()>=500){ if (friends.size()>=1000){
throw new BusinessException("vip最多只能加500个好友"); throw new BusinessException("vip最多只能加1000个好友");
} }
}else { }else {
// 不是vip // 不是vip
if (friends.size()>=3){ if (friends.size()>=1000){
throw new BusinessException("非vip最多只能加3个好友"); 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