From 218f9f001514a7eafa97b7f9c50d073dac37c92b Mon Sep 17 00:00:00 2001 From: gaoxiongzaq Date: Tue, 19 Dec 2023 09:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=91=BD=E5=90=8D=E8=A7=84?= =?UTF-8?q?=E8=8C=83,=E7=AC=A6=E5=90=88=E9=A9=BC=E5=B3=B0=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/keking/service/FileHandlerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/cn/keking/service/FileHandlerService.java b/server/src/main/java/cn/keking/service/FileHandlerService.java index 0e345647..5517b49e 100644 --- a/server/src/main/java/cn/keking/service/FileHandlerService.java +++ b/server/src/main/java/cn/keking/service/FileHandlerService.java @@ -241,7 +241,7 @@ public class FileHandlerService implements InitializingBean { */ public List pdf2jpg(String fileNameFilePath,String pdfFilePath, String pdfName, FileAttribute fileAttribute) throws Exception { boolean forceUpdatedCache = fileAttribute.forceUpdatedCache(); - boolean userToken = fileAttribute.getUsePasswordCache(); + boolean UsePasswordCache = fileAttribute.getUsePasswordCache(); String filePassword = fileAttribute.getFilePassword(); String fileKey = fileAttribute.getFileKey(); String pdfPassword = null; @@ -300,7 +300,7 @@ public class FileHandlerService implements InitializingBean { } } - if (userToken || !PDF_PASSWORD_MSG.equals(pdfPassword)) { //加密文件 判断是否启用缓存命令 + if (UsePasswordCache || !PDF_PASSWORD_MSG.equals(pdfPassword)) { //加密文件 判断是否启用缓存命令 this.addPdf2jpgCache(pdfFilePath, pageCount); } } catch (IOException e) {