调整阿里云上传
This commit is contained in:
parent
ef6cd8f4e6
commit
d70a8e3340
@ -55,9 +55,9 @@ public class FileUploadServiceImpl implements FileUploadService {
|
||||
String timeUrl = new DateTime().toString("yyyy/MM/dd");
|
||||
fileName = timeUrl + "/" + fileName;
|
||||
//调用方法实现上传
|
||||
// ossClient.putObject(bucketName, fileName, inputStream);
|
||||
ossClient.putObject(bucketName, fileName, inputStream);
|
||||
// 关闭OSSClient。
|
||||
// ossClient.shutdown();
|
||||
ossClient.shutdown();
|
||||
//上传之后文件路径
|
||||
String url = "https://" + bucketName + "." + endPoint + "/" + fileName;
|
||||
//返回
|
||||
|
Loading…
Reference in New Issue
Block a user