From e2d01b2009c30173ff8e9f77d5c065f4d38fa49d Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期五, 17 五月 2024 17:56:07 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/IgoTravel into 2.0

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