上传文件生成名称规则修改
This commit is contained in:
parent
a47c83e0aa
commit
b6bd220662
|
|
@ -97,7 +97,7 @@ public class SysFileServiceImpl implements SysFileService {
|
|||
String url = "";
|
||||
String tmpName = multipartFile.getOriginalFilename();// 完整路径 IE
|
||||
tmpName = tmpName.substring(tmpName.lastIndexOf("\\") + 1);
|
||||
tmpName = IdUtil.fastSimpleUUID() + tmpName;
|
||||
tmpName = IdUtil.fastSimpleUUID() + System.currentTimeMillis() +tmpName.substring(tmpName.lastIndexOf("."),tmpName.length());
|
||||
String imageFiles="/data/sgzb/" + fileType + "/";
|
||||
String os = System.getProperty("os.name");
|
||||
if(os.toLowerCase().startsWith("win")){
|
||||
|
|
|
|||
Loading…
Reference in New Issue