|
|
@ -1222,10 +1222,17 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial |
|
|
|
if ("true".equalsIgnoreCase(json.getString("extra_value")) || |
|
|
|
"false".equalsIgnoreCase(json.getString("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 { |
|
|
|
extraObj.put(json.getString("extra_code"), json.get("extra_value")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
extraObj.put("address", dto.getAddress()); |
|
|
|
result.put("form", extraObj); |
|
|
|