<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<repositoryVO id="__eBowkLGscs3nSgktOZ9">
  <name>saasSendExamCancel</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <content><![CDATA[function saasSendExamCancel(perId,personName,computerStartDate){
  var SAAS_URL = "http://saasweb.test.baibaodun.cn/saas_api";
  var sendMsgUrl = SAAS_URL + "/public/message/send-message";
  var content = personName+"，原定于"+computerStartDate+"的《国家保安员证》考试已取消，请等待培训学校重新安排，有任何问题可直接咨询所属保安公司或培训学校。";
  var params = new Packages.com.alibaba.fastjson.JSONArray();
  params.add(personName);
  params.add(computerStartDate);
  
  var paramsStr = params.toJSONString();
  var titles = "您参与的《国家保安员证》考试已取消！";
  var messageType = "010108";
  var smsCode = "B15";
  
  var contentMap  = new Packages.com.alibaba.fastjson.JSONObject();     
  contentMap.put("title",titles);     
  contentMap.put("content",content);  
  contentMap.put("messageType",messageType);
  contentMap.put("smsCode",smsCode);
  contentMap.put("smsParam",paramsStr);
  contentMap.put("callPlat","BKT");
  contentMap.put("ids",perId);
  contentMap.put("platId","1402");
  contentMap.put("way","1,3");
  //var outputStr = contentMap.toJSONString();
  println("contentMap==>"+contentMap);
  var URLConnector = Packages.cn.hutool.http.HttpRequest;
  var JSONString = URLConnector.post(sendMsgUrl).header("Content-Type", "application/x-www-form-urlencoded").form(contentMap).execute().body();
  println("JSONString==>"+JSONString);
  var json = JSON.parse(JSONString);
  return json;
}]]></content>
  <version>0</version>
</repositoryVO>