From 90b506b7ecd7088cbe053b2755d4b0dfe4b4842a Mon Sep 17 00:00:00 2001 From: luozhun <2025254074@qq.com> Date: Fri, 20 Dec 2024 09:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../support/fastjson2/serializer/MinioPrefixSerializer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(""); } }