From 8e3ee826a23ae16d019134985c0c9d00e06625bb Mon Sep 17 00:00:00 2001 From: chen-xin-zhi <3588068430@qq.com> Date: Tue, 20 May 2025 23:36:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E5=92=8C=E7=99=BB=E5=BD=95=E6=97=B6=E7=9A=84=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 21 ++++++++++++------- .../userInfo/UserAccountController.java | 1 - .../file/impl/FileInfoServiceImpl.java | 2 -- .../userInfo/impl/UserInfoServiceImpl.java | 4 ++-- 4 files changed, 16 insertions(+), 12 deletions(-) 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; }