<?xml version="1.0" encoding="UTF-8"?> <a:service xmlns:ns1="leaf.application.action" 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="app/app_login_check.js"><![CDATA[ function suggest_content_query() { var suggest_content_list_details; try { //意见反馈 var suggest_content_bm= $bm('app.my_information.suggest_content'); var suggest_content_list_map = suggest_content_bm.update({ user_id:$ctx.parameter.user_id, suggest_content:$ctx.parameter.suggest_content }); $ctx.parameter.return_status = 'S'; $ctx.parameter.return_message = '执行成功'; } catch (e) { $ctx.success = "true"; $ctx.parameter.return_status = 'E'; $ctx.parameter.return_message = String(e); } var result = { result: $ctx.parameter.return_status, message: $ctx.parameter.return_message }; $ctx.parameter.json = JSON.stringify(result); } if ($ctx.parameter.return_status != 'E'&& $ctx.parameter.return_status != 'TIMEOUT') { suggest_content_query(); } ]]></s:server-script> </a:init-procedure> <a:service-output output="/parameter/@json"/> </a:service>