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