Merge remote-tracking branch 'origin/develop_master' into develop_master

This commit is contained in:
yuezhihang
2021-08-26 09:42:57 +08:00
@@ -164,8 +164,8 @@ public class OCRRestfulServiceImpl implements OCRRestfulService {
saveWordFileName=UUIDUtils.randomUUID20()+"_"+wordFile.getOriginalFilename();
saveWordFilePath=ocrFilePath+saveWordFileName;
logger.info(saveWordFilePath);
//FileUtils.copyInputStreamToFile(wordFile.getInputStream(),new File(saveWordFilePath));
savePic(wordFile.getInputStream(),saveWordFilePath);
FileUtils.copyInputStreamToFile(wordFile.getInputStream(),new File(saveWordFilePath));
// savePic(wordFile.getInputStream(),saveWordFilePath);
logger.info("word存储完成");
}
String saveJsonFilePath=null;
@@ -174,8 +174,8 @@ public class OCRRestfulServiceImpl implements OCRRestfulService {
saveJsonFileName=UUIDUtils.randomUUID20()+"_"+jsonFile.getOriginalFilename();
saveJsonFilePath=ocrFilePath+saveJsonFileName;
logger.info(saveJsonFilePath);
//FileUtils.copyInputStreamToFile(jsonFile.getInputStream(),new File(saveJsonFilePath));
savePic(jsonFile.getInputStream(),saveJsonFilePath);
FileUtils.copyInputStreamToFile(jsonFile.getInputStream(),new File(saveJsonFilePath));
// savePic(jsonFile.getInputStream(),saveJsonFilePath);
logger.info("Json存储完成");
}
//开始将文件保存至数据库中