|
@ -607,11 +607,14 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<StaffOrgsResultDTO> getMyOrgByAccount(ThirdStaffOrgByAccountFormDTO formDTO) { |
|
|
public List<StaffOrgsResultDTO> getMyOrgByAccount(ThirdStaffOrgByAccountFormDTO formDTO) { |
|
|
//{"isNovice":false,"mobile":"","userAccount":"18700011111","password":"Py011111","appId":"wx2b75d556ba867750"}
|
|
|
|
|
|
|
|
|
|
|
|
String appId = formDTO.getAppId(); |
|
|
String appId = formDTO.getAppId(); |
|
|
String userAccount = formDTO.getUserAccount(); |
|
|
String userAccount = formDTO.getUserAccount(); |
|
|
String password = formDTO.getPassword(); |
|
|
String password = formDTO.getPassword(); |
|
|
|
|
|
if ("wx2b75d556ba867750".equals(appId)){ |
|
|
|
|
|
redisUtils.get("epmet:gov:py:staff:userAccount"); |
|
|
|
|
|
} |
|
|
|
|
|
//{"isNovice":false,"mobile":"","userAccount":"18700011111","password":"Py011111","appId":"wx2b75d556ba867750"}
|
|
|
|
|
|
|
|
|
logger.info("getMyOrgByAccountService at :{}",System.currentTimeMillis()); |
|
|
logger.info("getMyOrgByAccountService at :{}",System.currentTimeMillis()); |
|
|
long start = System.currentTimeMillis(); |
|
|
long start = System.currentTimeMillis(); |
|
|
//0.根据appId查询对应客户Id
|
|
|
//0.根据appId查询对应客户Id
|
|
@ -649,14 +652,11 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
long start2 = System.currentTimeMillis(); |
|
|
long start2 = System.currentTimeMillis(); |
|
|
if (!PasswordUtils.matches(formDTO.getPassword(), customerStaffDTO.getPassword())) { |
|
|
if (PasswordUtils.matches(formDTO.getPassword(), customerStaffDTO.getPassword())) { |
|
|
logger.warn(String.format("当前用户:账户%s,客户Id%s密码匹配错误.",formDTO.getUserAccount(),customerStaffDTO.getCustomerId())); |
|
|
|
|
|
logger.info("getMyOrgByAccountService PasswordUtils.matches cost:{}",System.currentTimeMillis()-start2); |
|
|
|
|
|
}else{ |
|
|
|
|
|
logger.warn(String.format("当前用户:账户%s,客户Id%s密码匹配正确.",formDTO.getUserAccount(),customerStaffDTO.getCustomerId())); |
|
|
|
|
|
passwordRightFlag=true; |
|
|
passwordRightFlag=true; |
|
|
customerIdList.add(customerStaffDTO.getCustomerId()); |
|
|
customerIdList.add(customerStaffDTO.getCustomerId()); |
|
|
} |
|
|
} |
|
|
|
|
|
logger.info("getMyOrgByAccountService PasswordUtils.matches cost:{}",System.currentTimeMillis()-start2); |
|
|
} |
|
|
} |
|
|
//根据手机号查出来所有用户,密码都为空,表明用户未激活账户,未设置密码
|
|
|
//根据手机号查出来所有用户,密码都为空,表明用户未激活账户,未设置密码
|
|
|
if(!havePasswordFlag){ |
|
|
if(!havePasswordFlag){ |
|
|