|
@@ -32,13 +32,8 @@ import com.fdkankan.web.response.ResultData;
|
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
-import java.util.Arrays;
|
|
|
|
|
-import java.util.Calendar;
|
|
|
|
|
-import java.util.Comparator;
|
|
|
|
|
-import java.util.HashSet;
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-import java.util.Objects;
|
|
|
|
|
-import java.util.Set;
|
|
|
|
|
|
|
+import java.util.*;
|
|
|
|
|
+
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -86,7 +81,7 @@ public class BoxModelServiceImpl implements IBoxModelService {
|
|
|
// }
|
|
// }
|
|
|
String path = String.format(ConstantFilePath.SCENE_USER_PATH_V4, num) + "boxModel/" + sid + "/";
|
|
String path = String.format(ConstantFilePath.SCENE_USER_PATH_V4, num) + "boxModel/" + sid + "/";
|
|
|
try {
|
|
try {
|
|
|
- String zipPath = path + file.getOriginalFilename();
|
|
|
|
|
|
|
+ String zipPath = path + UUID.randomUUID() + ".zip";
|
|
|
String srcPath = path + "data/";
|
|
String srcPath = path + "data/";
|
|
|
String glbPath = path + sid + ".glb";
|
|
String glbPath = path + sid + ".glb";
|
|
|
|
|
|