优化
This commit is contained in:
parent
5ec5b40ee3
commit
10c0037e18
@ -201,7 +201,7 @@ public class PostServiceImpl extends ServiceImpl<PostDao, PostEntity> implements
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void addComment(AddCommentForm request, AppUserEntity user) {
|
public void addComment(AddCommentForm request, AppUserEntity user) {
|
||||||
if(user.getStatus()!=0){
|
if(user.getStatus().equals(Constant.USER_BANNER)){
|
||||||
throw new LinfengException("您的账号已被禁用!");
|
throw new LinfengException("您的账号已被禁用!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user