diff --git a/SrcJuMethod2.js b/SrcJuMethod2.js index 9b5cb256..9cc3c2a5 100644 --- a/SrcJuMethod2.js +++ b/SrcJuMethod2.js @@ -118,6 +118,8 @@ let 图片解密 = function(key,iv,kiType,mode) { } else if (kiType === "Hex") { bytes = hexStringToBytes(str); } else { + bytes = FileUtil.String(str).getBytes(); + /* let javaImport = new JavaImporter(); javaImport.importPackage( Packages.com.example.hikerview.utils, @@ -127,8 +129,9 @@ let 图片解密 = function(key,iv,kiType,mode) { Packages.javax.crypto.spec ); with(javaImport) { - bytes = String(str).getBytes(); + bytes = FileUtil.String(str).getBytes(); } + */ } return bytes; }