|
@@ -368,8 +368,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
}).collect(Collectors.toSet());
|
|
}).collect(Collectors.toSet());
|
|
|
|
|
|
boxModelKeys.stream().forEach(key -> {
|
|
boxModelKeys.stream().forEach(key -> {
|
|
- if(key.endsWith(".glb") &&
|
|
|
|
- !sidSet.contains(key.substring(key.lastIndexOf("/") + 1, key.lastIndexOf(".")))){
|
|
|
|
|
|
+ if(CollUtil.isEmpty(sidSet) ||
|
|
|
|
+ (key.endsWith(".glb") &&
|
|
|
|
+ !sidSet.contains(key.substring(key.lastIndexOf("/") + 1, key.lastIndexOf("."))))){
|
|
try {
|
|
try {
|
|
uploadToOssUtil.delete(key);
|
|
uploadToOssUtil.delete(key);
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|