parent
8824c71002
commit
398bbe6578
|
@ -202,7 +202,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
for (String key : json.keySet()) {
|
for (String key : json.keySet()) {
|
||||||
Object value = json.get(key);
|
Object value = json.get(key);
|
||||||
String type = value instanceof JSONObject ? "对象" : value instanceof JSONArray ? "数组" : value.getClass().getSimpleName();
|
String type = value instanceof JSONObject ? "对象" : value instanceof JSONArray ? "数组" : value.getClass().getSimpleName();
|
||||||
String defaultValue = value instanceof JSONObject || value instanceof JSONArray ? "无" : value.toString();
|
String defaultValue = value instanceof JSONObject || value instanceof JSONArray ? "" : value.toString();
|
||||||
setEntryEntity(key, level, type, defaultValue, parentKey);
|
setEntryEntity(key, level, type, defaultValue, parentKey);
|
||||||
if (value instanceof JSONObject) {
|
if (value instanceof JSONObject) {
|
||||||
parseJson(value, level + 1, key);
|
parseJson(value, level + 1, key);
|
||||||
|
|
Loading…
Reference in New Issue