mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-05-05 23:58:33 +00:00
refactor(file): 文件存储
This commit is contained in:
parent
068fd54e1e
commit
20a70f3360
1 changed files with 0 additions and 6 deletions
|
|
@ -33,12 +33,6 @@ public class OssService {
|
|||
*/
|
||||
public void writeFileStream(InputStream inputStream, FileEntity file) {
|
||||
try {
|
||||
LocalDate localDate = file.getCreateTime().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
|
||||
String dateStr = localDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) + "/";
|
||||
|
||||
String source = file.getSource();
|
||||
source = ObjectUtils.isEmpty(source) ? "" : source + "/";
|
||||
|
||||
// 创建上传文件参数
|
||||
PutObjectArgs objectArgs = PutObjectArgs
|
||||
.builder()
|
||||
|
|
|
|||
Loading…
Reference in a new issue