123
This commit is contained in:
@@ -213,7 +213,7 @@ springdoc:
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/api/**'
|
||||
packages-to-scan: com.ruoyi.cai
|
||||
packages-to-scan: com.ruoyi.web.controller.cai
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
|
||||
@@ -192,7 +192,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
||||
if(user == null || user.getFinishStatus() == 1){
|
||||
return;
|
||||
}
|
||||
if(user.getCity() != null && user.getBirthday() != null && GenderEnum.NONE.getCode().equals(user.getGender())){
|
||||
if(user.getCity() != null && user.getBirthday() != null && !GenderEnum.NONE.getCode().equals(user.getGender())){
|
||||
this.update(Wrappers.lambdaUpdate(User.class)
|
||||
.eq(User::getId,user.getId())
|
||||
.set(User::getFinishStatus,1));
|
||||
@@ -347,6 +347,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
||||
if(user == null){
|
||||
throw new ServiceException("用户不存在");
|
||||
}
|
||||
if(user.getInviteId() != null){
|
||||
throw new ServiceException("请先解绑后在绑定");
|
||||
}
|
||||
User inviteUser = this.getByUserCode(inviteUsercode);
|
||||
if(inviteUser == null){
|
||||
throw new ServiceException("邀请人用户不存在");
|
||||
|
||||
Reference in New Issue
Block a user