|
|
@@ -145,7 +145,7 @@ public class NetDiskOssBusService extends SuperService {
|
|
|
}
|
|
|
param.getFileNames().forEach(it -> {
|
|
|
String[] split = it.split("\\.");
|
|
|
- List<String> path = Lists.newArrayList(new String[]{userId, UUID.randomUUID().toString() + "." + split[(split.length - 1)]});
|
|
|
+ List<String> path = Lists.newArrayList(new String[]{userId, CommonUtil.UUID() + "." + split[(split.length - 1)]});
|
|
|
paths.add(path.toArray(new String[0]));
|
|
|
});
|
|
|
return paths;
|
|
|
@@ -157,9 +157,9 @@ public class NetDiskOssBusService extends SuperService {
|
|
|
String[] split = it.split("\\.");
|
|
|
List<String> path = null;
|
|
|
if (ObjectUtils.isNotEmpty(user)) {
|
|
|
- path = Lists.newArrayList(new String[]{user.getId(), UUID.randomUUID().toString() + "." + split[(split.length - 1)]});
|
|
|
+ path = Lists.newArrayList(new String[]{user.getId(), CommonUtil.UUID() + "." + split[(split.length - 1)]});
|
|
|
} else {
|
|
|
- path = Lists.newArrayList(new String[]{UUID.randomUUID().toString() + "." + split[(split.length - 1)]});
|
|
|
+ path = Lists.newArrayList(new String[]{CommonUtil.UUID() + "." + split[(split.length - 1)]});
|
|
|
}
|
|
|
paths.add(path.toArray(new String[0]));
|
|
|
});
|