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

master
DongZeLiang 2024-07-31 11:18:26 +08:00
parent c4775be5d8
commit f2ccff2635
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());
}
// 保存验证码信息