| | |
| | | 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; |
| | |
| | | BufferedImage image = null; |
| | | |
| | | // 生成验证码 |
| | | String captchaType = RuoYiConfig.getCaptchaType(); |
| | | String captchaType = CpzIdcConfig.getCaptchaType(); |
| | | if ("math".equals(captchaType)) |
| | | { |
| | | String capText = captchaProducerMath.createText(); |