localizer
lzq 2025-09-30 17:52:48 +08:00
parent 58a39b259e
commit 33fcdb728c
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,12 @@ public class JsonTypeHandler implements TypeHandler<Object> {
}
private static Object getResult(String result) {
return StrUtil.isBlank(result) || !result.startsWith("{") || !result.startsWith("[") ? result : Fastjson.toBean(result, Object.class);
if (StrUtil.isBlank(result)) return null;
try {
return Fastjson.toBean(result, Object.class);
} catch (Exception e) {
return result;
}
}
@Override