From e4a47147b3eef20e2253c09ef9736c13eeb9c924 Mon Sep 17 00:00:00 2001 From: johnniang Date: Tue, 5 Mar 2019 00:20:58 +0800 Subject: [PATCH] =?UTF-8?q?Add=20todo=20code=20for=20issue(=E4=B8=83?= =?UTF-8?q?=E7=89=9B=E4=BA=91=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20#110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java b/src/main/java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java index d2f294d5d..860a70ff3 100644 --- a/src/main/java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java +++ b/src/main/java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java @@ -258,8 +258,9 @@ public class AttachmentServiceImpl extends AbstractCrudService */ @Override public Map attachQiNiuUpload(MultipartFile file, HttpServletRequest request) { - final Map resultMap = new HashMap<>(6); + final Map resultMap = new HashMap<>(7); try { + // TODO Dynamically set this zone of qiniuyun (七牛云上传附件失败 #110) final Configuration cfg = new Configuration(Zone.zone0()); final String key = Md5Util.getMD5Checksum(file); final String accessKey = OPTIONS.get("qiniu_access_key");