|
@@ -24,10 +24,7 @@ import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.File;
|
|
|
-import java.util.Base64;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -87,8 +84,15 @@ public class AppFileServiceImpl extends ServiceImpl<IAppFileMapper, AppFile> imp
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<String> agentList(String agentName) {
|
|
|
- return mangeUploadToOssUtil.listKeys(FilePath.appOssPath);
|
|
|
+ public Set<String> agentList(String agentName) {
|
|
|
+ List<String> strings = mangeUploadToOssUtil.listKeys(FilePath.appOssPath);
|
|
|
+ Set<String> keys = new HashSet<>();
|
|
|
+ for (String key : strings) {
|
|
|
+ String agent = key.replace(FilePath.appOssPath,"");
|
|
|
+ String[] split = agent.split("/");
|
|
|
+ keys.add(split[0]);
|
|
|
+ }
|
|
|
+ return keys;
|
|
|
}
|
|
|
|
|
|
@Override
|