|
@@ -6,7 +6,6 @@ import cn.keking.model.ReturnResponse;
|
|
|
import cn.keking.service.FilePreview;
|
|
|
import cn.keking.utils.DownloadUtils;
|
|
|
import cn.keking.service.FileHandlerService;
|
|
|
-import cn.keking.web.filter.BaseUrlFilter;
|
|
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
|
|
import org.apache.poi.EncryptedDocumentException;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -37,7 +36,6 @@ public class PdfFilePreviewImpl implements FilePreview {
|
|
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
|
|
String fileName = fileAttribute.getName();
|
|
|
String officePreviewType = fileAttribute.getOfficePreviewType();
|
|
|
- String baseUrl = BaseUrlFilter.getBaseUrl();
|
|
|
boolean forceUpdatedCache=fileAttribute.forceUpdatedCache();
|
|
|
String pdfName = fileName.substring(0, fileName.lastIndexOf(".") + 1) + "pdf";
|
|
|
String outFilePath = FILE_DIR + pdfName;
|