新增功能:添加更新缓存方法&forceUpdatedCache=true
新增功能:添加更新缓存方法&forceUpdatedCache=true Signed-off-by: 高雄 <admin@cxcp.com>pull/107/head
parent
9aeacc6e67
commit
4786068521
|
@ -178,12 +178,12 @@ public class FileHandlerService {
|
||||||
*/
|
*/
|
||||||
public List<String> pdf2jpg(String pdfFilePath, String pdfName, String baseUrl, FileAttribute fileAttribute) {
|
public List<String> pdf2jpg(String pdfFilePath, String pdfName, String baseUrl, FileAttribute fileAttribute) {
|
||||||
List<String> imageUrls = new ArrayList<>();
|
List<String> imageUrls = new ArrayList<>();
|
||||||
Integer imageCount = this.getConvertedPdfImage(pdfFilePath);
|
Integer imageCount = null;
|
||||||
String imageFileSuffix = ".jpg";
|
String imageFileSuffix = ".jpg";
|
||||||
String pdfFolder = pdfName.substring(0, pdfName.length() - 4);
|
String pdfFolder = pdfName.substring(0, pdfName.length() - 4);
|
||||||
boolean forceUpdatedCache=fileAttribute.forceUpdatedCache();
|
boolean forceUpdatedCache=fileAttribute.forceUpdatedCache();
|
||||||
if (forceUpdatedCache){
|
if (!forceUpdatedCache){
|
||||||
imageCount = null;
|
imageCount = this.getConvertedPdfImage(pdfFilePath);
|
||||||
}
|
}
|
||||||
String urlPrefix;
|
String urlPrefix;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue