diff --git a/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/serializer/MinioPrefixSerializer.java b/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/serializer/MinioPrefixSerializer.java index 1e6a48b..7dd293d 100644 --- a/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/serializer/MinioPrefixSerializer.java +++ b/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/serializer/MinioPrefixSerializer.java @@ -25,7 +25,8 @@ public class MinioPrefixSerializer implements ObjectWriter { public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) { if (object instanceof String path && StrUtil.isNotEmpty(path)) { jsonWriter.writeString(minioPrefix + object); + } else { + jsonWriter.writeString(""); } - jsonWriter.writeString(""); } }