更新 'SrcJyDrpy.js'

master
src48597962 6 months ago
parent 4311aafc0e
commit 69a9508794
  1. 17
      SrcJyDrpy.js

@ -3,14 +3,15 @@ const JSEngine = com.example.hikerview.service.parser.JSEngine;
const drpyMap = new Map(); const drpyMap = new Map();
const GMkey = module.importParam; const GMkey = module.importParam;
function buildJsEnv(ticket) { function buildJsEnv(ticket) {
let code = String.raw` let my_rule = JSON.stringify(MY_RULE);
// const my_rule = ' let code = `
const MY_RULE = ${my_rule}; let my_rule = '';
const my_rule = JSON.stringify(MY_RULE); my_rule = null;
const MY_TICKET = "${ticket || ""}"; const MY_RULE = ${my_rule};
eval(getJsPlugin()); const MY_TICKET = "${ticket || ""}";
eval(getJsLazyPlugin()); eval(getJsPlugin());
`; eval(getJsLazyPlugin());
`;
return code; return code;
} }

Loading…
Cancel
Save