From b3b7d3ae4789eb3d4d4bbadccd03d79adb28cb1a Mon Sep 17 00:00:00 2001
From: zhibing.pu <393733352@qq.com>
Date: 星期四, 25 七月 2024 18:21:09 +0800
Subject: [PATCH] 修改2.0 bug

---
 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