diff --git a/libs/crypto-js.js b/libs/crypto-js.js index 27f0a620a270e0bafc43ab15df6f31c0b95b4189..5d775753d416b7b17e051b8dcdc6c147ff2395da 100644 --- a/libs/crypto-js.js +++ b/libs/crypto-js.js @@ -9,7 +9,7 @@ } else { // Global (browser) - root.CryptoJS = factory(); + globalThis.CryptoJS = factory(); } }(this, function () { diff --git a/libs/drpy.js b/libs/drpy.js index 0ae9992248b217fa315c6650b595731f5e20f509..0d40239a9ddb42d358cc81577a37c9f5691a2e06 100644 --- a/libs/drpy.js +++ b/libs/drpy.js @@ -3,7 +3,7 @@ // import 'http://192.168.1.124:5705/libs/es6py.js'; import cheerio from 'https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/cheerio.min.js'; // import cheerio from 'http://192.168.10.103:5705/libs/cheerio.min.js'; - +import 'https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/crypto-js.js'; import 'https://gitcode.net/qq_32394351/dr_py/-/raw/master/libs/drT.js'; // import 'http://192.168.10.103:5705/libs/drT.js'; import muban from 'https://gitcode.net/qq_32394351/dr_py/-/raw/master/js/模板.js'; @@ -12,6 +12,7 @@ import muban from 'https://gitcode.net/qq_32394351/dr_py/-/raw/master/js/模板. // const key = 'drpy_zbk'; // eval(req('http://192.168.1.124:5705/libs/es6py.js').content); function init_test(){ + console.log(typeof(CryptoJS)); console.log("init_test_start"); console.log(RKEY); console.log(JSON.stringify(rule));