<?xml version="1.0" encoding="UTF-8"?> <a:service xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true"> <a:init-procedure> <s:server-script import="wx/aes.js;wx/wechat.js"><![CDATA[ $logger().info($ctx.parameter.toXML()); var data = AES.decrypt(hls_config.aeskey, $ctx.parameter.data); var json = JSON.parse(data); if (json.calc_session_id) { $ctx.parameter.calc_session_id = json.calc_session_id; } ]]></s:server-script> <a:model-query fetchAll="true" model="hls_weixin.wx_quote_calc_result"/> </a:init-procedure> <a:service-output output="/model"/> </a:service>