update 标准化活动 集团参与情况的邮箱和手机号加密回显
This commit is contained in:
+1
-13
@@ -11,7 +11,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.api.vo.ResultCommon;
|
||||
import com.jero.common.constant.CacheConstant;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
@@ -559,7 +558,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||
} catch (Exception e) {
|
||||
email = user.getEmail();
|
||||
}
|
||||
user.setEmail(DesensitizedEmail(email));
|
||||
user.setEmail(PasswordUtil.desensitizedEmail(email));
|
||||
}
|
||||
|
||||
if (StrUtil.isNotEmpty(phone)){
|
||||
@@ -573,17 +572,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||
}
|
||||
}
|
||||
|
||||
private String DesensitizedEmail(String email) {
|
||||
if (StrUtil.isBlank(email)) {
|
||||
return StrUtil.EMPTY;
|
||||
}
|
||||
int index = StrUtil.indexOf(email, '@');
|
||||
if (index <= 4) {
|
||||
return StrUtil.hide(email, 0, index);
|
||||
}
|
||||
return StrUtil.hide(email, index - 4, index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String proceedEmailDecrypt(String email) {
|
||||
if (StrUtil.isNotEmpty(email)){
|
||||
|
||||
Reference in New Issue
Block a user