Commit 5ab0899f authored by 马超's avatar 马超

feat: 完善对象存储文档

parent 810a349e
......@@ -70,9 +70,12 @@ StorageService storageService;
@Override
public String uploadToCloudStorage(MultipartFile file) {
if (file == null) {
throw new BizException(500, "文件不能为空");
}
String uploadPath = null;
try {
//调用上传方法,返回的是下载地址
//调用上传方法,返回下载地址
uploadPath = storageService.upload(file.getBytes(), file.getOriginalFilename());
} catch (Exception e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment