Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
efa9bd09
Commit
efa9bd09
authored
Nov 23, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip加好友限制添加
parent
bd85dd2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
core/src/main/java/com/wecloud/im/friend/controller/ImFriendController.java
+4
-4
No files found.
core/src/main/java/com/wecloud/im/friend/controller/ImFriendController.java
View file @
efa9bd09
...
...
@@ -92,13 +92,13 @@ public class ImFriendController extends BaseController {
List
<
ImFriendBaseDto
>
friends
=
imFriendService
.
getFriends
(
currentClient
);
if
(
isVip
){
// 是vip
if
(
friends
.
size
()>=
1
0
){
throw
new
BusinessException
(
"vip最多只能加
1
0个好友"
);
if
(
friends
.
size
()>=
50
0
){
throw
new
BusinessException
(
"vip最多只能加
50
0个好友"
);
}
}
else
{
// 不是vip
if
(
friends
.
size
()>=
500
){
throw
new
BusinessException
(
"非vip最多只能加
500
个好友"
);
if
(
friends
.
size
()>=
3
){
throw
new
BusinessException
(
"非vip最多只能加
3
个好友"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment