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

master
xinzirun 2024-08-04 14:04:38 +08:00
parent 567aae0854
commit d643c4cab5
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());
}
// 保存验证码信息