opt:1.后端国际化完成。

This commit is contained in:
2026-02-04 10:36:38 +08:00
parent 6c9c1c95e4
commit ab393a8fee
9 changed files with 372 additions and 48 deletions

View File

@@ -1,6 +1,7 @@
package org.nl.util;
import lombok.extern.slf4j.Slf4j;
import org.nl.config.language.LangProcess;
import org.nl.exception.BadRequestException;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
@@ -38,7 +39,7 @@ public class ParseZip {
if (extension.toLowerCase().equals(".zip")) {
extractZipFile(inputStream, skippedFiles);
} else {
throw new BadRequestException("不支持的压缩格式: " + extension);
throw new BadRequestException(LangProcess.msg("unsupported_format", extension));
}
}
}