yanghb
2023-04-21 75a2623173bcc4a235aa1f99f7ef28519186160b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.stylefeng.guns.core.util;
 
import com.stylefeng.guns.config.properties.GunsProperties;
 
/**
 * 验证码工具类
 */
public class KaptchaUtil {
 
    /**
     * 获取验证码开关
     */
    public static Boolean getKaptchaOnOff() {
        return SpringContextHolder.getBean(GunsProperties.class).getKaptchaOpen();
    }
}