Commit 6399923d by 墨竹

fix:加好友优化

parent c65d47c8
......@@ -686,12 +686,11 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
memberUnionRelatedService.update(dto);
RedisUtil.unlock(lockKey);
RedisUtil.delCache(key);
return dto;
} else {
RedisUtil.setCache(key, dto, 60L);
String memberUnionidRelatedId = memberUnionRelatedService.addMemberUnionidRelated(dto);
dto.setMemberUnionidRelatedId(memberUnionidRelatedId);
RedisUtil.setCache(key, dto, 60L);
RedisUtil.unlock(lockKey);
return null;
}
......
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