mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-13 21:53:41 +08:00
fix:加好友防止重复
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user