|  |  | 
 |  |  |     private EmayService emayService; | 
 |  |  |     @Autowired | 
 |  |  |     private EmailService emailService; | 
 |  |  |     @Value("${debug_model}") | 
 |  |  |     private boolean debugModel; | 
 |  |  |  | 
 |  |  |     public static void isCaptcheValide(SmsEmailMapper smsEmailMapper, String phone, String captche) { | 
 |  |  |         SmsEmail model = smsEmailMapper.selectOne(new QueryWrapper<SmsEmail>().lambda() | 
 |  |  | 
 |  |  |         if(StringUtils.isBlank(code)){ | 
 |  |  |             throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
 |  |  |         } | 
 |  |  |         if(debugModel){ | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |         LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); | 
 |  |  |         if(!loginUserInfo.getType().equals(Constants.ONE)){ | 
 |  |  |         if(!(loginUserInfo.getType().equals(Constants.ONE)||loginUserInfo.getType().equals(Constants.TWO))){ | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"用户类别错误"); | 
 |  |  |         }; | 
 |  |  |         Company company = loginUserInfo.getCompany(); |