代码提交

This commit is contained in:
luozhun 2024-12-20 09:17:43 +08:00
parent a5fe88db37
commit 90b506b7ec
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ public class MinioPrefixSerializer implements ObjectWriter<String> {
public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) { public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
if (object instanceof String path && StrUtil.isNotEmpty(path)) { if (object instanceof String path && StrUtil.isNotEmpty(path)) {
jsonWriter.writeString(minioPrefix + object); jsonWriter.writeString(minioPrefix + object);
} } else {
jsonWriter.writeString(""); jsonWriter.writeString("");
} }
}
} }