From b05622ccff4bb41df4f3d1ff3fbf3e2d08849413 Mon Sep 17 00:00:00 2001 From: wangyi Date: Thu, 2 Oct 2025 17:01:22 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=90=84=E9=A1=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/bs/BsApplication.java | 2 +- bs-admin/src/main/resources/application.yml | 2 +- .../bs/framework/config/CaptchaConfig.java | 11 +- bs-ui/src/views/index.vue | 927 ------------------ 4 files changed, 10 insertions(+), 932 deletions(-) diff --git a/bs-admin/src/main/java/com/bs/BsApplication.java b/bs-admin/src/main/java/com/bs/BsApplication.java index e6dad6a..b695053 100644 --- a/bs-admin/src/main/java/com/bs/BsApplication.java +++ b/bs-admin/src/main/java/com/bs/BsApplication.java @@ -16,6 +16,6 @@ public class BsApplication { // System.setProperty("spring.devtools.restart.enabled", "false"); SpringApplication.run(BsApplication.class, args); - System.out.println("(♥◠‿◠)ノ゙ 保税启动成功 ლ(´ڡ`ლ)゙ "); + System.out.println("(♥◠‿◠)ノ゙ 系统启动成功 ლ(´ڡ`ლ)゙ "); } } diff --git a/bs-admin/src/main/resources/application.yml b/bs-admin/src/main/resources/application.yml index c51a2b4..6f6bdc4 100644 --- a/bs-admin/src/main/resources/application.yml +++ b/bs-admin/src/main/resources/application.yml @@ -13,7 +13,7 @@ bs: # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数字计算 char 字符验证 - captchaType: math + captchaType: char # 开发环境配置 server: diff --git a/bs-framework/src/main/java/com/bs/framework/config/CaptchaConfig.java b/bs-framework/src/main/java/com/bs/framework/config/CaptchaConfig.java index 9cdcdfc..761f949 100644 --- a/bs-framework/src/main/java/com/bs/framework/config/CaptchaConfig.java +++ b/bs-framework/src/main/java/com/bs/framework/config/CaptchaConfig.java @@ -21,13 +21,14 @@ public class CaptchaConfig DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); Properties properties = new Properties(); // 是否有边框 默认为true 我们可以自己设置yes,no - properties.setProperty(KAPTCHA_BORDER, "yes"); + properties.setProperty(KAPTCHA_BORDER, "no"); // 验证码文本字符颜色 默认为Color.BLACK - properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "black"); + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "blue"); // 验证码图片宽度 默认为200 properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160"); // 验证码图片高度 默认为50 properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60"); + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_SPACE, "10"); // 验证码文本字符大小 默认为40 properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "38"); // KAPTCHA_SESSION_KEY @@ -37,7 +38,11 @@ public class CaptchaConfig // 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize) properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier"); // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy - properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy"); + //properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy"); + properties.setProperty(KAPTCHA_NOISE_IMPL, "com.google.code.kaptcha.impl.NoNoise"); + properties.setProperty(KAPTCHA_BACKGROUND_CLR_FROM, "white"); + // + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_STRING,"0123456789"); Config config = new Config(properties); defaultKaptcha.setConfig(config); return defaultKaptcha; diff --git a/bs-ui/src/views/index.vue b/bs-ui/src/views/index.vue index bad923c..dc0aaf7 100644 --- a/bs-ui/src/views/index.vue +++ b/bs-ui/src/views/index.vue @@ -1,941 +1,14 @@