diff --git a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java index e59ea5d..7cd3e73 100644 --- a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java +++ b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java @@ -101,6 +101,7 @@ public class FriendServiceImpl implements FriendService { * @param request 请求 */ @Override + @RedissonLock(key = "#uid") public void apply(Long uid, FriendApplyReq request) { //是否有好友关系 UserFriend friend = userFriendDao.getByFriend(uid, request.getTargetUid());