|
|
@ -32,8 +32,10 @@ public class OnlinePreviewController {
|
|
|
|
ZipReader zipReader;
|
|
|
|
ZipReader zipReader;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
SimTextUtil simTextUtil;
|
|
|
|
SimTextUtil simTextUtil;
|
|
|
|
@ApolloConfig
|
|
|
|
@Value("${simText}")
|
|
|
|
Config config;
|
|
|
|
String[] simText;
|
|
|
|
|
|
|
|
// @ApolloConfig
|
|
|
|
|
|
|
|
// Config config;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${file.dir}")
|
|
|
|
@Value("${file.dir}")
|
|
|
|
String fileDir;
|
|
|
|
String fileDir;
|
|
|
@ -164,8 +166,7 @@ public class OnlinePreviewController {
|
|
|
|
if (fileUtils.listOfficeTypes().contains(fileType.toLowerCase())) {
|
|
|
|
if (fileUtils.listOfficeTypes().contains(fileType.toLowerCase())) {
|
|
|
|
fileType = "office";
|
|
|
|
fileType = "office";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (Arrays.asList(config.getArrayProperty("simText",",",new String[]{}))
|
|
|
|
if (Arrays.asList(simText).contains(fileType.toLowerCase())) {
|
|
|
|
.contains(fileType.toLowerCase())) {
|
|
|
|
|
|
|
|
fileType = "simText";
|
|
|
|
fileType = "simText";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return fileType;
|
|
|
|
return fileType;
|
|
|
|