关注自己逻辑

This commit is contained in:
linfeng 2023-11-28 10:42:01 +08:00
parent c179fe03c5
commit d14d3c5c74

View File

@ -234,9 +234,9 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
@Override
public void addFollow(AddFollowForm request, AppUserEntity user) {
if (request.getId().equals(user.getUid())) {
throw new LinfengException("不能关注自己哦");
}
// if (request.getId().equals(user.getUid())) {
// throw new LinfengException("不能关注自己哦");
// }
boolean isFollow = followService.isFollowOrNot(user.getUid(), request.getId());
if (isFollow) {
throw new LinfengException("不要重复关注哦");