<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__taGJiAvgSqrxWLJwaO6">
  <name>跳过人脸</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>post</requestType>
  <requestUrl>/face/jump</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 type = json["type"];
    var needface = "0"
    if(isNotNull(id)){
      var Info = findDocument(id);
      if(isNotNull(Info)&&"0".equals(type)){
        var value = Info.findItem("operateJumpFace");
        if(isNotNull(value)){
          needface = value.getValue();
        }
      }else if(isNotNull(Info)&&("1".equals(type)||!isNotNull(type))){
        var value = Info.findItem("jumpface");
        if(isNotNull(value)){
          needface = value.getValue();
        }
      }
    }
    if(!"1".equals(needface)){
      result.put("msg","需要人脸识别")
      result.put("code","0");
    }else{
      result.put("msg","跳过人脸识别")
      result.put("code","1");
    }
    return result
  }
})()]]></responseScript>
</Api>