ä¿重构获取文件路径接口
This commit is contained in:
parent
49d51c371d
commit
b6c86679fd
@ -91,12 +91,14 @@ public class SearchController {
|
||||
return Maps.newHashMap();
|
||||
}
|
||||
List<String> fileNames = (List)req.get("fileNames");
|
||||
Map<String, Object> result = Maps.newHashMap();
|
||||
Map<String, Object> filePaths = Maps.newHashMap();
|
||||
fileNames.forEach(name -> {
|
||||
if(LocalCacheUtil.get(name) != null) {
|
||||
result.put(name, LocalCacheUtil.get(name));
|
||||
filePaths.put(name, LocalCacheUtil.get(name));
|
||||
}
|
||||
});
|
||||
Map<String, Object> result = Maps.newHashMap();
|
||||
result.put("filePaths", filePaths);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user