| | |
| | | if (r1.getCode()== Constants.SUCCESS){ |
| | | loginUserInfoVO.setType(13); |
| | | } |
| | | R r2 = userService.propertyCheck(loginUserInfoVO.getPhone()); |
| | | if (r2.getCode() == Constants.SUCCESS){ |
| | | loginUserInfoVO.setPropertyId((Long)r2.getData()); |
| | | } |
| | | } |
| | | return new UsernamePasswordAuthenticationToken(loginUserInfoVO, password, grantedAuthorityList); |
| | | } |
| | |
| | | R r1 = communityService.isExpert(loginUserInfoVO.getPhone()); |
| | | if (r1.getCode() == Constants.SUCCESS){ |
| | | loginUserInfoVO.setType(13); |
| | | } |
| | | R r2 = userService.propertyCheck(loginUserInfoVO.getPhone()); |
| | | if (r2.getCode() == Constants.SUCCESS){ |
| | | loginUserInfoVO.setPropertyId((Long)r2.getData()); |
| | | } |
| | | } |
| | | return new UsernamePasswordAuthenticationToken(loginUserInfoVO, password, grantedAuthorityList); |