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