1.添加头像上传接口
This commit is contained in:
@@ -169,6 +169,9 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserModel> implements
|
||||
if (userModel == null) {
|
||||
throw new BusinessException(ErrorCode.USER_DOES_NOT_EXIST);
|
||||
}
|
||||
if (userModel.getStatus() == 0){
|
||||
throw new BusinessException(ErrorCode.USER_HAS_ACTIVATED);
|
||||
}
|
||||
userModel.setStatus(0);
|
||||
userModel.setMailVerification(0);
|
||||
if (userDao.updateById(userModel) == 1){
|
||||
|
||||
Reference in New Issue
Block a user