jason.lu 6 years ago
parent
commit
e4b3a83426
1 changed files with 1 additions and 20 deletions
  1. 1 20
      sourcecode/h5app/vue/src/connector/basic-service.js

+ 1 - 20
sourcecode/h5app/vue/src/connector/basic-service.js

@@ -297,11 +297,6 @@ var BasicFunction = new (function () {
     };
 
     this.on_fail = function (msg, sta, obj) {
-        try{
-            var vvurl =""
-        }catch (e) {
-            console.log(msg);
-        }
         BasicFunction.Queue.errorCount += 1;
         if (BasicFunction.Queue.errorCount >= 10) {
             BasicFunction.Queue.errorCount = 0;
@@ -310,24 +305,10 @@ var BasicFunction = new (function () {
             BasicFunction.logwarn("-----  Too many failure, temporary stop HTTP ------");
             BasicFunction.send_alert("很抱歉,网络错误数量过多,暂时终止HTTP功能30s");
         }
-        let vurl = "";
-        try {
-            vurl = " : " + obj.url.substring(7, 12);
-        } catch (e) {
-            vurl = "";
-        }
-        BasicFunction.send_alert("很抱歉,网络错误,请查看 Console" + vurl);
+        BasicFunction.send_alert("很抱歉,网络错误,请查看 Console");
         BasicFunction.logwarn("-----   网络请求失败 ---------");
-        try {
-            BasicFunction.logwarn(JSON.stringify(this));
-        } catch (e) {
-            BasicFunction.logwarn(JSON.stringify(obj.url));
-            BasicFunction.logwarn(JSON.stringify(obj.responseText));
-        }
         BasicFunction.logwarn("-----------msg-------------");
         BasicFunction.logwarn(JSON.stringify(msg));
-        BasicFunction.logwarn("-----------sta--------------");
-        BasicFunction.logwarn(JSON.stringify(sta));
         BasicFunction.logwarn("----------------------------");
     };