| | |
| | | |
| | | private String salt = "&a.s"; |
| | | |
| | | @Autowired |
| | | private SMSUtil smsUtil; |
| | | |
| | | |
| | | /** |
| | | * 获取短信验证码 |
| | |
| | | sms = "Votre code de vérification est: " + authCode + ". Ce code est valide pendant 5 minutes. Ne le divulguez pas aux autres!"; |
| | | break; |
| | | } |
| | | SMSUtil.sendTwilioMessage("+" + phone, sms); |
| | | smsUtil.sendCellulantMessage(phone, sms); |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | |
| | | * @param id |
| | | */ |
| | | private void singlePointLogin(Integer id) throws Exception{ |
| | | pushUtil.pushOffline(id, 1); |
| | | //开始验证当前账号是否在别处登录 |
| | | String value = redisUtil.getValue("USER_" + id); |
| | | if(ToolUtil.isNotEmpty(value)){//将另外设备上的强迫下线 |