Skip to content

Commit 6e13e8c

Browse files
committed
修复问题
1 parent f8de928 commit 6e13e8c

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44

5+
# 1.0.5
6+
7+
- 修复问题
8+
59
# 1.0.4
610

711
- 优化列表接口

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
group=run.ikaros.plugin
22
description=A pan115 plugin for ikaros.
3-
version=1.0.4
3+
version=1.0.5

src/main/java/run/ikaros/plugin/pan115/repository/DefaultPan115Repository.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,14 @@ public List<Pan115Attachment> openUFileFiles(String cid, Integer limit, Integer
8888
Pan115Path[] parentPath = JsonUtils.json2ObjArr(JsonUtils.obj2Json(pathObj), new TypeReference<>() {
8989
});
9090
for (Pan115Attachment pan115Attachment : pan115Attachments) {
91-
List<Pan115Path> newPaths = List.of(parentPath);
91+
List<Pan115Path> newPaths = new ArrayList<>();
9292
Pan115Path lastPath = new Pan115Path();
9393
lastPath.setFile_id(Long.parseLong(pan115Attachment.getFid()));
9494
lastPath.setFile_name(pan115Attachment.getFn());
9595
lastPath.setIss(String.valueOf(pan115Attachment.getIss()));
96+
for (Pan115Path pan115Path : parentPath) {
97+
newPaths.add(pan115Path);
98+
}
9699
newPaths.add(lastPath);
97100
pan115Attachment.setPath(newPaths);
98101
}

0 commit comments

Comments
 (0)