This commit is contained in:
YuTian 2024-07-17 16:01:30 +08:00
parent 5e3dd8f654
commit cb58d3c7e6
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@ public class SerializeHelper {
continue; continue;
} }
Object value = field.get(obj); Object value = field.get(obj);
if (value == null) {
continue;
}
Object serializeValue = serializeValue(value); Object serializeValue = serializeValue(value);
jsonObject.put(field.getName(), serializeValue); jsonObject.put(field.getName(), serializeValue);
} }

View File

@ -1,4 +1,4 @@
name: AuLib name: AuLib
main: com.io.yutian.aulib.AuLib main: com.io.yutian.aulib.AuLib
version: 1.3.1 version: 1.3.2
author: SuperYuTian author: SuperYuTian