From 00af90424cffb4cfec8425a660c52d138630f4c9 Mon Sep 17 00:00:00 2001
From: luo <2855143437@qq.com>
Date: 星期二, 06 二月 2024 16:55:17 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/IgoTravel into dev

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