mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-05 10:09:32 +08:00
Merge branch 'master' of https://github.com/FJiayang/blade-tool
This commit is contained in:
commit
52874a540f
@ -187,6 +187,8 @@ public class QiniuTemplate {
|
|||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public BladeFile put(String bucketName, InputStream stream, String key, boolean cover) {
|
public BladeFile put(String bucketName, InputStream stream, String key, boolean cover) {
|
||||||
|
BladeFile file = new BladeFile();
|
||||||
|
file.setOriginalName(key);
|
||||||
makeBucket(bucketName);
|
makeBucket(bucketName);
|
||||||
key = getFileName(key);
|
key = getFileName(key);
|
||||||
// 覆盖上传
|
// 覆盖上传
|
||||||
@ -201,7 +203,6 @@ public class QiniuTemplate {
|
|||||||
retry++;
|
retry++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BladeFile file = new BladeFile();
|
|
||||||
file.setName(key);
|
file.setName(key);
|
||||||
file.setLink(fileLink(bucketName, key));
|
file.setLink(fileLink(bucketName, key));
|
||||||
return file;
|
return file;
|
||||||
|
Loading…
Reference in New Issue
Block a user