From 32c2cd65f179d409bd7dc1bfbb67a4b127327dbb Mon Sep 17 00:00:00 2001 From: retire Date: Wed, 25 Mar 2020 13:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E7=9A=84?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E7=9B=AE=E5=BD=95=E4=B8=8D=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/jpress/core/attachment/AttachmentDownloader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jpress-core/src/main/java/io/jpress/core/attachment/AttachmentDownloader.java b/jpress-core/src/main/java/io/jpress/core/attachment/AttachmentDownloader.java index e9a937fe4..46a9cef58 100644 --- a/jpress-core/src/main/java/io/jpress/core/attachment/AttachmentDownloader.java +++ b/jpress-core/src/main/java/io/jpress/core/attachment/AttachmentDownloader.java @@ -33,7 +33,7 @@ import java.util.concurrent.ExecutorService; */ public class AttachmentDownloader { - private static ExecutorService fixedThreadPool = NamedThreadPools.newFixedThreadPool(3,"attachment-download"); + private static ExecutorService fixedThreadPool = NamedThreadPools.newFixedThreadPool(3, "attachment-download"); /** * 用于下载 WordPress 的附件,下载成功后 更新 attachment 本身的路径 @@ -57,7 +57,7 @@ public class AttachmentDownloader { return; } - String path = URI.create(url).getPath(); + String path = "/attachment" + URI.create(url).getPath(); File downloadToFile = AttachmentUtils.file(path); -- Gitee