moxi624 / mogu_blog_v2

蘑菇博客(MoguBlog),一个基于微服务架构的前后端分离博客系统。Web端使用Vue + Element , 移动端使用uniapp和ColorUI。后端使用Spring cloud + Spring boot + mybatis-plus进行开发,使用 Jwt + Spring Security做登录验证和权限校验,使用ElasticSearch和Solr作为全文检索服务,使用Github Actions完成博客的持续集成,使用ELK收集博客日志,文件支持上传七牛云和Minio,支持Docker Compose脚本一键部署。

Home Page:http://www.moguit.cn/#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

可能是写错了

2310532573 opened this issue · comments

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, "验证码不正确");
}