From 49e88798dcea0164f77c59f0be9eefdf67a3d228 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期三, 17 七月 2024 15:03:10 +0800
Subject: [PATCH] 2.0bug修改
---
UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java
index adfe944..6d9c92f 100644
--- a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java
+++ b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/KaptchaController.java
@@ -47,13 +47,13 @@
*/
@RequestMapping("")
public void index(HttpServletRequest request, HttpServletResponse response,String phone) {
-// String substring = phone.substring(0, 1);
-// if("0".equals(substring)){
-// phone = "233" + phone.substring(1);
-// }
-// if(phone.indexOf("233") < 0){
-// phone = "233" + phone;
-// }
+ String substring = phone.substring(0, 1);
+ if("0".equals(substring)){
+ phone = "233" + phone.substring(1);
+ }
+ if(phone.indexOf("233") < 0){
+ phone = "233" + phone;
+ }
HttpSession session = request.getSession();
@@ -76,7 +76,7 @@
// store the text in the session
session.setAttribute(Constants.KAPTCHA_SESSION_KEY, capText);
-// redisUtil.setStrValue(phone+"_Code",capText);
+ redisUtil.setStrValue(phone+"_Code",capText);
// create the image with the text
Properties properties = new Properties();
--
Gitblit v1.7.1