关注自己逻辑
This commit is contained in:
parent
c179fe03c5
commit
d14d3c5c74
@ -234,9 +234,9 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addFollow(AddFollowForm request, AppUserEntity user) {
|
public void addFollow(AddFollowForm request, AppUserEntity user) {
|
||||||
if (request.getId().equals(user.getUid())) {
|
// if (request.getId().equals(user.getUid())) {
|
||||||
throw new LinfengException("不能关注自己哦");
|
// throw new LinfengException("不能关注自己哦");
|
||||||
}
|
// }
|
||||||
boolean isFollow = followService.isFollowOrNot(user.getUid(), request.getId());
|
boolean isFollow = followService.isFollowOrNot(user.getUid(), request.getId());
|
||||||
if (isFollow) {
|
if (isFollow) {
|
||||||
throw new LinfengException("不要重复关注哦");
|
throw new LinfengException("不要重复关注哦");
|
||||||
|
Loading…
Reference in New Issue
Block a user