Skip to content

Commit

Permalink
图片审核
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Nov 4, 2024
1 parent 02aae88 commit 4531dcf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4531dcf

Please sign in to comment.