Skip to content

Commit

Permalink
fix:加好友防止重复
Browse files Browse the repository at this point in the history
  • Loading branch information
zongzibinbin committed Oct 29, 2023
1 parent 58cb34a commit 378d767
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public FriendCheckResp check(Long uid, FriendCheckReq request) {
* @param request 请求
*/
@Override
@RedissonLock(key = "#uid")
public void apply(Long uid, FriendApplyReq request) {
//是否有好友关系
UserFriend friend = userFriendDao.getByFriend(uid, request.getTargetUid());
Expand Down

0 comments on commit 378d767

Please sign in to comment.