<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__EHzZyJxS9Cgr6sDmpXg">
  <name>重置跳过人脸状态</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>post</requestType>
  <requestUrl>/face/review</requestUrl>
  <tags></tags>
  <responseType>json</responseType>
  <responseScript><![CDATA[(function () {
  var result = new Packages.java.util.HashMap(); //创建指定类对象
  var jsonStr = getParameter("_content");
  if(isNotNull(jsonStr)){
    var json = JSON.parse(jsonStr);
    var id = json["id"];
    var process = getDocumentProcess();
    var persondoc=findDocument(id);
    var key = persondoc.findItem("idCardNo").getValue()+persondoc.findItem("examId").getValue();
    removeFromRedis(key);
    persondoc.findItem("operateJumpFace").setValue("")
    persondoc.findItem("jumpFace").setValue("")
  result.put("msg", "重置成功");
  result.put("code", "0");
  result.put("type", "update");
  return result;
  }

})()]]></responseScript>
</Api>