中国算力平台算力登记系统2.0
yanzhaofeige
2024-09-30 3c4fee1db116c11d4f04727cfe076d7c94daeaf2
cpzidc-admin/src/main/java/com/odcc/cpzidc/web/controller/common/CaptchaController.java
@@ -11,7 +11,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.google.code.kaptcha.Producer;
import com.odcc.cpzidc.common.config.RuoYiConfig;
import com.odcc.cpzidc.common.config.CpzIdcConfig;
import com.odcc.cpzidc.common.constant.CacheConstants;
import com.odcc.cpzidc.common.constant.Constants;
import com.odcc.cpzidc.common.core.domain.AjaxResult;
@@ -61,7 +61,7 @@
        BufferedImage image = null;
        // 生成验证码
        String captchaType = RuoYiConfig.getCaptchaType();
        String captchaType = CpzIdcConfig.getCaptchaType();
        if ("math".equals(captchaType))
        {
            String capText = captchaProducerMath.createText();