Files
notes/work/移动杭研/问题处理/2023-03/0327-省侧客户经理管理员、运营经理管理员,无法登录ibs-朱鹏昊.md
T
2026-03-01 01:43:46 +08:00

48 lines
1.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 截图
![](../../../../attachment/images-uuid/1d8555bcb5234c1a81cb167d0757d684.png)
![](../../../../attachment/images-uuid/2bd9288429f14be684c161dbcd854175.png)
# 配查思路
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. 定位到问题用户创建不会携带相应的手机号。