zouyong 5 سال پیش
والد
کامیت
a72aa439cf
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 1 1
      mk_framework/assets/script/mk/sdk/BuglySDK.ts
  2. 3 0
      mk_framework/assets/script/mk/system/MKSystem.ts

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

@@ -112,7 +112,7 @@ export default class BuglySDK {
         };
 
         let str = JSON.stringify(senddata);
-        str = Utils.RSAEncrypt(str);
+        str = mk.encrypt.rsaEncrypt(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 HttpSystem from "./HttpSystem";
 import LoaderSystem from "../utils/LoadResUtil";
+import { EncryptUtil } from "../utils/EncryptUtil";
 
 
 class MKSystem {
@@ -15,6 +16,7 @@ class MKSystem {
     /** 工具 */
     time: TimeUtil;
     file: FileUtil;
+    encrypt:EncryptUtil;
 
     /** SDK */
     bugly:BuglySDK;
@@ -30,6 +32,7 @@ class MKSystem {
         //工具
         this.time = new TimeUtil();
         this.file = new FileUtil();
+        this.encrypt = new EncryptUtil();
 
         //sdk
         this.bugly = new BuglySDK();