Commit be0d485e authored by chenzhao's avatar chenzhao

登录问题修复

parent be27e69e
......@@ -301,11 +301,11 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
try{
phoneNo = this.parsePhoneNo(wxDTO);
}catch (Exception e){
throw new BadRequest("解析手机号失败");
throw new RuntimeException("解析手机号失败");
}
if (phoneNo == null) {
log.error("获取手机号失败!");
throw new BadRequest("解析手机号失败");
throw new RuntimeException("解析手机号失败");
}
log.info("用户手机号码 => {} 开始登录", phoneNo);
wxDTO.setPhoneNo(phoneNo);
......@@ -390,9 +390,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
Privilege.agencyUserClient.multDeleteUser(registerUserModel.getUserId());
}
if (e instanceof BadRequest || e.getCause() instanceof BadRequest) {
throw new BadRequest(e.getMessage());
throw new RuntimeException("解析手机号失败");
}
throw new BadRequest(e.getMessage());
throw new RuntimeException("解析手机号失败");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment