feat(REQ-3982) - 调整表单 value 的默认响应

This commit is contained in:
wangli 2025-04-28 15:51:19 +08:00
parent a2ba80fbc1
commit 8a9975fd89

View File

@ -32,7 +32,7 @@ public class ConversionUtils {
} else if (obj instanceof String) {
if (StringUtils.pathEquals(obj.toString(), "[]")) {
return null;
} else if (StringUtils.hasText(obj.toString())) {
} else if (StringUtils.hasText(obj.toString()) && ((String) obj).startsWith("[") && ((String) obj).endsWith("]")) {
return ((String) obj).replace("[", "").replace("]", "");
}
// 如果输入不是列表类型返回空列表或进行其他处理