zouyong 5 years ago
parent
commit
a72aa439cf

+ 1 - 1
mk_framework/assets/script/mk/sdk/BuglySDK.ts

@@ -112,7 +112,7 @@ export default class BuglySDK {
         };
         };
 
 
         let str = JSON.stringify(senddata);
         let str = JSON.stringify(senddata);
-        str = Utils.RSAEncrypt(str);
+        str = mk.encrypt.rsaEncrypt(str);
 
 
         httpRequest.send(str);
         httpRequest.send(str);
     }
     }

+ 3 - 0
mk_framework/assets/script/mk/system/MKSystem.ts

@@ -5,6 +5,7 @@ import AudioSystem from "./AudioSystem";
 import DataSystem from "./DataSystem";
 import DataSystem from "./DataSystem";
 import HttpSystem from "./HttpSystem";
 import HttpSystem from "./HttpSystem";
 import LoaderSystem from "../utils/LoadResUtil";
 import LoaderSystem from "../utils/LoadResUtil";
+import { EncryptUtil } from "../utils/EncryptUtil";
 
 
 
 
 class MKSystem {
 class MKSystem {
@@ -15,6 +16,7 @@ class MKSystem {
     /** 工具 */
     /** 工具 */
     time: TimeUtil;
     time: TimeUtil;
     file: FileUtil;
     file: FileUtil;
+    encrypt:EncryptUtil;
 
 
     /** SDK */
     /** SDK */
     bugly:BuglySDK;
     bugly:BuglySDK;
@@ -30,6 +32,7 @@ class MKSystem {
         //工具
         //工具
         this.time = new TimeUtil();
         this.time = new TimeUtil();
         this.file = new FileUtil();
         this.file = new FileUtil();
+        this.encrypt = new EncryptUtil();
 
 
         //sdk
         //sdk
         this.bugly = new BuglySDK();
         this.bugly = new BuglySDK();