Commit c95b5241 authored by youxiaoji's avatar youxiaoji

* [即使页面已获取,也要将表单数据发送给前端]

parent cc2063d4
...@@ -309,8 +309,17 @@ public class VisitorAppointmentTool { ...@@ -309,8 +309,17 @@ public class VisitorAppointmentTool {
* @return 页面内容(HTML文本) * @return 页面内容(HTML文本)
*/ */
@Tool(description = "获取访客预约申请必要信息") @Tool(description = "获取访客预约申请必要信息")
public String getAppointmentApplyNecessaryInfo() { public String getAppointmentApplyNecessaryInfo() throws IOException {
if(infoCollectorService.exists(pageId)){ if(infoCollectorService.exists(pageId)){
JSONArray jsonArray = infoCollectorService.getInfo(pageId);
JSONArray lackJson = new JSONArray();
for(int i=0;i<jsonArray.size();i++){
JSONObject tmp = jsonArray.getJSONObject(i);
lackJson.add(tmp.getJSONObject("pangea_json"));
}
JSONObject formMessage = new JSONObject();
formMessage.put("coms", lackJson);
sendFormMessage(formMessage);
return "已获取必要信息,保存用户提交的信息"; return "已获取必要信息,保存用户提交的信息";
} }
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
......
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