修复了注册和登录时的验证码异常
This commit is contained in:
parent
fb66333c60
commit
8e3ee826a2
21
pom.xml
21
pom.xml
|
@ -201,6 +201,13 @@
|
|||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.6</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -246,13 +253,13 @@
|
|||
<systemPath>${project.basedir}/src/main/resources/lib/commons-collections-3.1.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.cxz</groupId>
|
||||
<artifactId>commons-lang-2.1</artifactId>
|
||||
<version>2.1</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/src/main/resources/lib/commons-lang-2.1.jar</systemPath>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.cxz</groupId>-->
|
||||
<!-- <artifactId>commons-lang-2.1</artifactId>-->
|
||||
<!-- <version>2.1</version>-->
|
||||
<!-- <scope>system</scope>-->
|
||||
<!-- <systemPath>${project.basedir}/src/main/resources/lib/commons-lang-2.1.jar</systemPath>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>com.cxz</groupId>
|
||||
|
|
|
@ -65,7 +65,6 @@ public class UserAccountController {
|
|||
return ResultUtils.success(true);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 小程序端用户根据id修改用户账户信息
|
||||
* @param userAccountUpdateRequest 用户账户更新请求体
|
||||
|
|
|
@ -36,8 +36,6 @@ import java.util.Arrays;
|
|||
public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo>
|
||||
implements FileInfoService{
|
||||
|
||||
@Resource
|
||||
private CommonService commonService;
|
||||
|
||||
|
||||
// 上传文件的服务器存储目录
|
||||
|
|
|
@ -285,7 +285,7 @@ public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo>
|
|||
|
||||
String verificationCode = SendSmsUtil.getVerificationCode(phoneNumber);
|
||||
ThrowUtils.throwIf(verificationCode == null, ErrorCode.OPERATION_ERROR, "验证码获取失败");
|
||||
redisTemplate.opsForValue().set(SystemConstant.VERIFICATION_CODE + ":" + verificationCode, verificationCode, 1, TimeUnit.MINUTES);
|
||||
redisTemplate.opsForValue().set(SystemConstant.VERIFICATION_CODE + ":" + verificationCode, verificationCode, 5, TimeUnit.MINUTES);
|
||||
return verificationCode;
|
||||
}
|
||||
|
||||
|
@ -314,7 +314,7 @@ public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo>
|
|||
|
||||
String verificationCode = SendSmsUtil.getVerificationCode(phoneNumber);
|
||||
ThrowUtils.throwIf(verificationCode == null, ErrorCode.OPERATION_ERROR, "验证码获取失败");
|
||||
redisTemplate.opsForValue().set(SystemConstant.VERIFICATION_CODE + ":" + verificationCode, verificationCode, 1, TimeUnit.MINUTES);
|
||||
redisTemplate.opsForValue().set(SystemConstant.VERIFICATION_CODE + ":" + verificationCode, verificationCode, 5, TimeUnit.MINUTES);
|
||||
return verificationCode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user