Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
8053570a
Commit
8053570a
authored
Sep 08, 2019
by
dqjdda
Browse files
修复七牛云无法删除的Bug
parent
58b1e2ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-tools/src/main/java/me/zhengjie/service/impl/QiNiuServiceImpl.java
View file @
8053570a
...
@@ -137,7 +137,7 @@ public class QiNiuServiceImpl implements QiNiuService {
...
@@ -137,7 +137,7 @@ public class QiNiuServiceImpl implements QiNiuService {
Auth
auth
=
Auth
.
create
(
config
.
getAccessKey
(),
config
.
getSecretKey
());
Auth
auth
=
Auth
.
create
(
config
.
getAccessKey
(),
config
.
getSecretKey
());
BucketManager
bucketManager
=
new
BucketManager
(
auth
,
cfg
);
BucketManager
bucketManager
=
new
BucketManager
(
auth
,
cfg
);
try
{
try
{
bucketManager
.
delete
(
content
.
getBucket
(),
content
.
getKey
());
bucketManager
.
delete
(
content
.
getBucket
(),
content
.
getKey
()
+
"."
+
content
.
getSuffix
()
);
qiniuContentRepository
.
delete
(
content
);
qiniuContentRepository
.
delete
(
content
);
}
catch
(
QiniuException
ex
)
{
}
catch
(
QiniuException
ex
)
{
qiniuContentRepository
.
delete
(
content
);
qiniuContentRepository
.
delete
(
content
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment