From 8b2f7f0e647dca1716a0f792dabb7756c822a9ec Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 02 九月 2021 15:19:18 +0800 Subject: [PATCH] update 优化验证码配置 使用泛型 防止错误输入 --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/CaptchaProperties.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/CaptchaProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/CaptchaProperties.java index cf9ad8b..354d8c3 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/CaptchaProperties.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/CaptchaProperties.java @@ -1,5 +1,7 @@ package com.ruoyi.framework.config.properties; +import com.ruoyi.common.enums.CaptchaCategory; +import com.ruoyi.common.enums.CaptchaType; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @@ -17,12 +19,12 @@ /** * 楠岃瘉鐮佺被鍨� */ - private String type; + private CaptchaType type; /** * 楠岃瘉鐮佺被鍒� */ - private String category; + private CaptchaCategory category; /** * 鏁板瓧楠岃瘉鐮佷綅鏁� -- Gitblit v1.9.3