可能是写错了
2310532573 opened this issue · comments
2310532573 commented
package com.moxi.mogublog.admin.restapi;
这个包中更新管理员邮箱或手机号 updateEmail()方法
//这里你传的参数是 管理员新邮箱或新手机号,应该是验证码.你下面也比较的是验证码
String checkValidCode = stringRedisTemplate.opsForValue().get(newInfo);
if (checkValidCode.isEmpty()) {
return ResultUtil.result(SysConf.ERROR, "验证码已过期");
}
if (!checkValidCode.equals(validCode)) {
return ResultUtil.result(SysConf.ERROR, "验证码不正确");
}