|
@@ -92,7 +92,7 @@ public class PublicController {
|
|
92
|
@ApiOperation(value = "获取登录验证码")
|
92
|
@ApiOperation(value = "获取登录验证码")
|
|
93
|
@GetMapping("/captcha")
|
93
|
@GetMapping("/captcha")
|
|
94
|
public ResultView captcha() {
|
94
|
public ResultView captcha() {
|
|
95
|
- SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 5);
|
|
|
|
|
|
95
|
+ SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 4);
|
|
96
|
String verCode = specCaptcha.text().toLowerCase();
|
96
|
String verCode = specCaptcha.text().toLowerCase();
|
|
97
|
String key = UUID.randomUUID().toString();
|
97
|
String key = UUID.randomUUID().toString();
|
|
98
|
// 存入redis并设置过期时间为3分钟
|
98
|
// 存入redis并设置过期时间为3分钟
|