|
@ -1222,10 +1222,17 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial |
|
|
if ("true".equalsIgnoreCase(json.getString("extra_value")) || |
|
|
if ("true".equalsIgnoreCase(json.getString("extra_value")) || |
|
|
"false".equalsIgnoreCase(json.getString("extra_value"))) { |
|
|
"false".equalsIgnoreCase(json.getString("extra_value"))) { |
|
|
extraObj.put(json.getString("extra_code"), json.getBoolean("extra_value")); |
|
|
extraObj.put(json.getString("extra_code"), json.getBoolean("extra_value")); |
|
|
|
|
|
} else { |
|
|
|
|
|
boolean endsWith = json.getString("extra_value").endsWith("]"); |
|
|
|
|
|
boolean startsWith = json.getString("extra_value").startsWith("["); |
|
|
|
|
|
if (endsWith && startsWith){ |
|
|
|
|
|
JSONArray extraValue = JSONArray.parseArray(json.getString("extra_value")); |
|
|
|
|
|
extraObj.put(json.getString("extra_code"), extraValue); |
|
|
} else { |
|
|
} else { |
|
|
extraObj.put(json.getString("extra_code"), json.get("extra_value")); |
|
|
extraObj.put(json.getString("extra_code"), json.get("extra_value")); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
extraObj.put("address", dto.getAddress()); |
|
|
extraObj.put("address", dto.getAddress()); |
|
|
result.put("form", extraObj); |
|
|
result.put("form", extraObj); |
|
|