fix():修复没有验证码的情况下,直接返回构造模式的构造对象的情况

master
LQS 2024-08-04 11:35:28 +08:00
parent f3032c30f6
commit 2e5b47bfc3
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class ValidateCodeServiceImpl implements ValidateCodeService {
CaptchaCodeResp.CaptchaCodeRespBuilder respBuilder = CaptchaCodeResp.builder()
.captchaEnabled(captchaEnabled);
if (!captchaEnabled) {
return Result.success(respBuilder);
return Result.success(respBuilder.build());
}
// 保存验证码信息