refactor(file): 文件存储

This commit is contained in:
sol 2025-09-19 22:33:59 +08:00
parent 068fd54e1e
commit 20a70f3360

View file

@ -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()