【8.1.8】拖拽验证码的生成,后台会打印出来验证码的具体位置

dev-8.1.9
fengshuonan 2024-06-20 14:34:57 +08:00
parent c3eec812d4
commit 391f785c27
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ public class CaptchaController {
@GetResource(name = "获取拖拽验证码的图片", path = "/getDragCaptcha", requiredLogin = false)
public ResponseData<DragCaptchaImageDTO> getDragCaptcha() {
DragCaptchaImageDTO captcha = dragCaptchaApi.createCaptcha();
log.info("拖拽验证码的图片信息key={}x={}Y={}", captcha.getKey(), captcha.getLocationX(), captcha.getLocationY());
captcha.setLocationX(null);
return new SuccessResponseData<>(captcha);
}