Merge branch 'dev-nw' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nw

This commit is contained in:
BianLzhaoMin 2024-05-30 18:04:40 +08:00
commit 5354eff460
1 changed files with 0 additions and 11 deletions

View File

@ -240,17 +240,6 @@ public class TokenController {
if (StringUtils.isBlank(phone)) {
throw new ServiceException("手机号为空,请联系管理员!");
}
String uuid = form.getUuid();
if (StringUtils.isBlank(uuid)) {
throw new ServiceException("uuid不能为空");
}
String captcha = redisService.getCacheObject(CacheConstants.CAPTCHA_CODE_KEY + uuid).toString();
if (StringUtils.isBlank(captcha)) {
return R.fail("验证码超时,请重新刷新");
}
if (form.getCode() != null && !form.getCode().equals(captcha)) {
return R.fail("验证码错误");
}
//图形验证码校验成功发送短信
R<Boolean> sendState = remoteUserService.sendCode(phone);
return sendState;