Commit 15bbdfe6 authored by youxiaoji's avatar youxiaoji

* [增加默认值]

parent fcd56a92
......@@ -278,11 +278,14 @@ public class VisitorAppointmentTool {
if (!keys.isEmpty()) {
JSONArray jsonArray = infoCollectorService.getInfo(pageId);
JSONArray lackJson = new JSONArray();
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject tmp = jsonArray.getJSONObject(i);
JSONObject pangeJson = tmp.getJSONObject("pangea_json");
if(infoCollectorService.getValue(tmp.getString("code")) != null){
tmp.put("value", infoCollectorService.getValue(tmp.getString("code")).toString());
pangeJson.getJSONObject("props").put("value", infoCollectorService.getValue(tmp.getString("code")).toString());
}
lackJson.add(pangeJson);
}
JSONObject formMessage = new JSONObject();
formMessage.put("coms", lackJson);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment