diff --git a/pom.xml b/pom.xml index 0549a2b..d1e0755 100644 --- a/pom.xml +++ b/pom.xml @@ -201,6 +201,13 @@ true + + commons-lang + commons-lang + 2.6 + + + @@ -246,13 +253,13 @@ ${project.basedir}/src/main/resources/lib/commons-collections-3.1.jar - - com.cxz - commons-lang-2.1 - 2.1 - system - ${project.basedir}/src/main/resources/lib/commons-lang-2.1.jar - + + + + + + + com.cxz diff --git a/src/main/java/com/greenorange/promotion/controller/userInfo/UserAccountController.java b/src/main/java/com/greenorange/promotion/controller/userInfo/UserAccountController.java index 09a9959..749d886 100644 --- a/src/main/java/com/greenorange/promotion/controller/userInfo/UserAccountController.java +++ b/src/main/java/com/greenorange/promotion/controller/userInfo/UserAccountController.java @@ -65,7 +65,6 @@ public class UserAccountController { return ResultUtils.success(true); } - /** * 小程序端用户根据id修改用户账户信息 * @param userAccountUpdateRequest 用户账户更新请求体 diff --git a/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java b/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java index 02a43d0..86e345c 100644 --- a/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java +++ b/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java @@ -36,8 +36,6 @@ import java.util.Arrays; public class FileInfoServiceImpl extends ServiceImpl implements FileInfoService{ - @Resource - private CommonService commonService; // 上传文件的服务器存储目录 diff --git a/src/main/java/com/greenorange/promotion/service/userInfo/impl/UserInfoServiceImpl.java b/src/main/java/com/greenorange/promotion/service/userInfo/impl/UserInfoServiceImpl.java index 1687277..c379f5c 100644 --- a/src/main/java/com/greenorange/promotion/service/userInfo/impl/UserInfoServiceImpl.java +++ b/src/main/java/com/greenorange/promotion/service/userInfo/impl/UserInfoServiceImpl.java @@ -285,7 +285,7 @@ public class UserInfoServiceImpl extends ServiceImpl 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 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; }