From 4531dcfbcb44abd5962ea68a8d22083f4e81fac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=BE=89?= <1101635162@qq.com> Date: Mon, 4 Nov 2024 18:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/b3log/symphony/processor/AdminProcessor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/b3log/symphony/processor/AdminProcessor.java b/src/main/java/org/b3log/symphony/processor/AdminProcessor.java index d1b386a9..fedfa690 100644 --- a/src/main/java/org/b3log/symphony/processor/AdminProcessor.java +++ b/src/main/java/org/b3log/symphony/processor/AdminProcessor.java @@ -465,9 +465,8 @@ public void markPic(final RequestContext context) { Configuration cfg = new Configuration(Region.autoRegion()); BucketManager bucketManager = new BucketManager(auth, cfg); String filename = path.replaceAll(Symphonys.UPLOAD_QINIU_DOMAIN + "/", ""); - String fileKey = Symphonys.UPLOAD_QINIU_BUCKET + ":" + filename; - LOGGER.log(Level.INFO, "Delete cdn file: " + fileKey); - bucketManager.delete(Symphonys.UPLOAD_QINIU_BUCKET, fileKey); + LOGGER.log(Level.INFO, "Delete cdn file: " + filename); + bucketManager.delete(Symphonys.UPLOAD_QINIU_BUCKET, filename); String[] urls = new String[] { path }; CdnManager c = new CdnManager(auth); CdnResult.RefreshResult result = c.refreshUrls(urls);