| | |
| | | // 发送手机验证码 |
| | | if (AppContants.ACCOUNT_TYPE_MOBILE.equals(type)) { |
| | | // boolean result = ZzSmsSend.sendVerifyCode(account, code.toString(), 2); |
| | | boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | if (result) { |
| | | // boolean result = Sms106Send.sendVerifyCode(account, code.toString(), 2); |
| | | // if (result) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | boolean flag = redisUtils.set(AppContants.VERIFY_CODE_PREFIX + account, code, 120); |
| | | map.put("code", flag); |
| | | return new FebsResponse().success().message("验证码发送成功"); |
| | | } |
| | | return new FebsResponse().success().data(code); |
| | | // } |
| | | // 发送邮件验证码 |
| | | } else if (AppContants.ACCOUNT_TYPE_EMAIL.equals(type)) { |
| | | boolean flag = SubMailSend.sendMail(account, code.toString()); |
| | |
| | | log.info("未定义账号类型"); |
| | | throw new FebsException("未定义账号类型"); |
| | | } |
| | | return new FebsResponse().fail().message("验证码发送失败"); |
| | | // return new FebsResponse().fail().message("验证码发送失败"); |
| | | } |
| | | |
| | | /** |