<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__LJ1TaPPMvEcLw1Ksls1">
  <name>二维码参数加密</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>post</requestType>
  <requestUrl>/exam/encryption</requestUrl>
  <tags></tags>
  <responseType>json</responseType>
  <responseScript><![CDATA[(function(){
  /*
   设置约束，防止多次点击提交
  */
  var uuidfo = new Packages.cn.myapps.util.sequence.Sequence();  //设置id  
  var result = new Packages.java.util.HashMap(); //创建指定类对象
  var uuid = uuidfo.getSequence()
  println("---------->"+uuid)
  var jsonStr = getParameter("_content");
  var result2 = new Packages.java.util.HashMap();
  result2.put("content",jsonStr)
  setDataToRedis(uuid,result2,300)
  result.put("msg","success")
  result.put("qrcodekey",uuid)
  result.put("code","0");
  return result;
})()
]]></responseScript>
</Api>