From 22b0e54074c8f95652ff553ceb49d5fd3b095b86 Mon Sep 17 00:00:00 2001 From: yanglin Date: Wed, 19 Mar 2025 17:39:00 +0800 Subject: [PATCH] =?UTF-8?q?REQ-3540:=20=E5=AE=B9=E9=87=8F=E6=BB=A1?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/axzo/nanopart/doc/file/index/copy/CopyFileVisitor.java | 2 +- .../doc/file/mq/filehandler/IndexNodeRenameOssFileHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/copy/CopyFileVisitor.java b/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/copy/CopyFileVisitor.java index 48584ccf..95dc316f 100644 --- a/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/copy/CopyFileVisitor.java +++ b/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/index/copy/CopyFileVisitor.java @@ -19,7 +19,7 @@ public class CopyFileVisitor extends CopyNodeVisitor { public WalkingDecision visit(ValueNode node) { IndexNode copy = node.getValue(); if (copy.isFile()) { - FileAttributes fileAttributes = copy.getAttributes().getOrCreateFileAttributes(); + FileAttributes fileAttributes = copy.getOrCreateFileAttributes(); String newOssFileKey = copiedOssFiles.getCopyOssFileKey(fileAttributes.getOssFileKey()); fileAttributes.setOssFileKey(newOssFileKey); } diff --git a/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/mq/filehandler/IndexNodeRenameOssFileHandler.java b/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/mq/filehandler/IndexNodeRenameOssFileHandler.java index 400a3902..4ef51383 100644 --- a/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/mq/filehandler/IndexNodeRenameOssFileHandler.java +++ b/doc/doc-server/src/main/java/cn/axzo/nanopart/doc/file/mq/filehandler/IndexNodeRenameOssFileHandler.java @@ -41,7 +41,7 @@ public class IndexNodeRenameOssFileHandler implements EventHandler, Initializing log.warn("index node is not a file: {}", message.getIndexNodeCode()); return; } - String ossFileKey = indexNode.getOrCreateAttributes().getOrCreateFileAttributes().getOssFileKey(); + String ossFileKey = indexNode.getOrCreateFileAttributes().getOssFileKey(); if (StringUtils.isBlank(ossFileKey)) { log.warn("try to rename index node oss file ({}) but oss file key not found", indexNode.getCode()); return;