opt:1.后端国际化完成。
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user