Initial commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# 截图
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
# 配查思路
|
||||
|
||||
1. 通过报错信息进行查验。
|
||||
|
||||
```java
|
||||
PHONE_TENANT_ERROR(411, "手机号或租户错误,请重试"),
|
||||
```
|
||||
|
||||
2. 定位报错代码位置
|
||||
|
||||
```java
|
||||
if(SendAuthCodeType.LOGIN.getId().equals(type.getId()) || SendAuthCodeType.RESET_PASSWORD.getId().equals(type.getId())) {
|
||||
User user = userService.getUserByPhoneAndTenantId(phone, tenantId);
|
||||
if (ObjectUtils.isEmpty(user)) {
|
||||
return ResultType.PHONE_TENANT_ERROR;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
3. 因为对应账号不存在手机号
|
||||
4. 排查创建用户时是否携带响应的手机号信息。
|
||||
|
||||
```java
|
||||
//创建业务管理员和客户经理管理员 2.手机号和邮箱无需同步到iam 3.邮箱只能作为邮件,无法登录
|
||||
if (isNeedUniqueRoleByRole(role)) {
|
||||
//是否需要校验权限
|
||||
iamInfoVO.setIsCheckRole("true");
|
||||
} else {
|
||||
//非业务管理员或者客户经理管理员则手机号和邮箱为必填项
|
||||
if (org.apache.commons.lang3.StringUtils.isBlank(addUserToIamVO.getEmail())
|
||||
|| org.apache.commons.lang3.StringUtils.isBlank(addUserToIamVO.getMobile())) {
|
||||
throw new PlatformException(org.apache.commons.lang3.StringUtils.isBlank(addUserToIamVO.getEmail())
|
||||
? "邮箱为必填项,请重新输入" : "手机号为必填项,请重新输入");
|
||||
}
|
||||
//非业务管理员和客户经理管理员同步邮箱手机号
|
||||
iamInfoVO.setEmail(addUserToIamVO.getEmail());
|
||||
iamInfoVO.setMobile(addUserToIamVO.getMobile());
|
||||
}
|
||||
```
|
||||
|
||||
5. 定位到问题用户创建不会携带相应的手机号。
|
||||
Reference in New Issue
Block a user