Commit 6ad93cc9 by Future

vip加好友限制添加

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