zouyong 5 år sedan
förälder
incheckning
1efab166de

+ 16 - 15
mk_framework/assets/script/mk/sdk/BuglySDK.ts

@@ -1,9 +1,23 @@
+/**
+ * @description 错误日志管理类
+ * @author 邹勇
+ */
 export default class BuglySDK {
     constructor() {
-        this.initErrorHandler();
+        this.initELKHandler();
     }
 
-    private initErrorHandler() {
+    /**
+     * 接入第三方腾讯bugly
+     */
+    private initBugly(){
+
+    }
+
+    /**
+     * 错误日志发送elk服务器
+     */
+    private initELKHandler() {
         if (cc.sys.isNative) {
             let __handler;
             if (window['__errorHandler']) {
@@ -18,19 +32,6 @@ export default class BuglySDK {
                 }
             }
         }
-        else if (cc.sys.isBrowser) {
-            let __handler;
-            if (window.onerror) {
-                __handler = window.onerror;
-            }
-            window.onerror = function (...args) {
-                console.log('游戏报错,浏览器');
-                BuglySDK.handleError(...args)
-                if (__handler) {
-                    __handler(...args);
-                }
-            }
-        }
     }
 
 

+ 4 - 0
mk_framework/assets/script/mk/system/DataSystem.ts

@@ -1,3 +1,7 @@
+/**
+ * @description 数据管理类
+ * @author 邹勇
+ */
 export default class DataSystem {
     constructor() {
         

+ 2 - 2
mk_framework/assets/script/mk/system/HttpSystem.ts

@@ -1,6 +1,6 @@
 /**
- * @description http请求
- * @author zy
+ * @description http请求管理类
+ * @author 邹勇
  */
 export default class HttpSystem {
     constructor() {

+ 1 - 4
mk_framework/assets/script/mk/system/MKSystem.ts

@@ -16,11 +16,8 @@ class MKSystem {
     /** 工具 */
     time: TimeUtil;
     file: FileUtil;
-<<<<<<< .mine
-    encrypt:EncryptUtil;
-=======
     loadRes:LoadResUtil;
->>>>>>> .theirs
+    encrypt:EncryptUtil;
 
     /** SDK */
     bugly:BuglySDK;

+ 1 - 1
mk_framework/assets/script/mk/utils/TimeUtil.ts

@@ -1,6 +1,6 @@
 /**
  * @description 时间工具类
- * @author zy
+ * @author 邹勇
  */
 export default class TimeUtil {
     constructor() {