feat(后台管理): 存储管理

添加七牛云存储
master
hequan_waynaqua 4 years ago
parent a00f95ce4c
commit 3f93ad17e1

@ -143,11 +143,10 @@ public class QiniuContentServiceImpl extends ServiceImpl<QiniuContentMapper, Qin
Auth auth = Auth.create(config.getAccessKey(), config.getSecretKey());
BucketManager bucketManager = new BucketManager(auth, cfg);
Response response = bucketManager.delete(content.getBucket(), content.getName() + "." + content.getSuffix());
if (response.isOK()) {
removeById(content);
} else {
if (!response.isOK()) {
return false;
}
removeById(content);
return true;
}
}

Loading…
Cancel
Save