|
|
@@ -250,11 +250,14 @@ public class NjsSceneBoxModelServiceImpl extends ServiceImpl<INjsSceneBoxModelMa
|
|
|
|
|
|
//删除无效文件
|
|
|
Set<String> prefixList = list.stream().map(v -> njsBoxModelDir + "/" + v.getData().getString("sid")).collect(Collectors.toSet());
|
|
|
+ log.info("-----------prefixList:{}", JSON.toJSONString(prefixList));
|
|
|
List<String> keyList = fYunFileService.listRemoteFiles(njsBoxModelDir);
|
|
|
+ log.info("-----------keyList:{}", JSON.toJSONString(keyList));
|
|
|
if(!keyList.isEmpty()){
|
|
|
keyList.removeIf(file ->
|
|
|
prefixList.stream().anyMatch(file::startsWith)
|
|
|
);
|
|
|
+ log.info("-----------keyList.removeIf:{}", JSON.toJSONString(keyList));
|
|
|
if(!keyList.isEmpty()){
|
|
|
keyList.stream().forEach(key -> {
|
|
|
try {
|