|
@@ -98,7 +98,9 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
|
|
|
return Result.failure(ErrorEnum.FAILURE_CODE_3021.code(),"上传文件格式有误, 请重新上传");
|
|
|
}
|
|
|
|
|
|
- String time = DateUtil.format(new Date(), "yyyyMMdd_HHmmssSSS");
|
|
|
+// String time = DateUtil.format(new Date(), "yyyyMMdd_HHmmssSSS");
|
|
|
+ String time = DateUtil.format(new Date(), "yyyyMMdd_HHmmssSS");
|
|
|
+ log.info("time: {}", time);
|
|
|
String fileName = file.getOriginalFilename();
|
|
|
// 文件名校验长度
|
|
|
String prefix = StringUtils.substringBeforeLast(fileName, ".");
|
|
@@ -389,7 +391,7 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
|
|
|
private String createThumb(String type, MultipartFile file){
|
|
|
|
|
|
// 写入文件
|
|
|
- String time = DateUtil.format(new Date(), "yyyyMMdd_HHmmssSSS");
|
|
|
+ String time = DateUtil.format(new Date(), "yyyyMMdd_HHmmssSS");
|
|
|
String dir = "/temp/" + time;
|
|
|
Map<String, Object> uploadMap = fileUtils.uploadMap(file, dir, false);
|
|
|
String filePath = uploadMap.get("filePath").toString();
|