|
@@ -290,4 +290,15 @@ public class LoginController {
|
|
|
String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
|
|
|
return R.ok(authorizeUrl);
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/imgcaptcha-answer")
|
|
|
+ @ApiOperation(value = "图形验证码", notes = "图形验证码")
|
|
|
+ public R imgcaptchaAnswer(String key) {
|
|
|
+ String active = SpringUtil.getActiveProfile();
|
|
|
+ if(!"dev".equals(active)){
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ return R.ok(redisUtil.get(key));
|
|
|
+ }
|
|
|
}
|