Commit e8a373c7 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 0e66f00b
...@@ -138,7 +138,6 @@ App(monitor.hookApp({ ...@@ -138,7 +138,6 @@ App(monitor.hookApp({
onError(err) onError(err)
{ {
monitor.error(err)
fundebug.onError(err); fundebug.onError(err);
}, },
......
...@@ -184,7 +184,6 @@ var SEQUENCE = Date.now(), ...@@ -184,7 +184,6 @@ var SEQUENCE = Date.now(),
}, },
util_1 = util, util_1 = util,
pushToQueue = function (e, t) { pushToQueue = function (e, t) {
// debugger;
var i; var i;
{ {
if ("error" !== t.t || !(i = e.requestQueue[0]) || "error" !== i.t || t.msg !== i.msg) { if ("error" !== t.t || !(i = e.requestQueue[0]) || "error" !== i.t || t.msg !== i.msg) {
...@@ -396,7 +395,6 @@ Reporter.prototype = util_1.createObject(base.prototype), util_1.ext(base.dftCon ...@@ -396,7 +395,6 @@ Reporter.prototype = util_1.createObject(base.prototype), util_1.ext(base.dftCon
msg: a, msg: a,
begin: s begin: s
} : util.sub(e, validApiKeys); } : util.sub(e, validApiKeys);
if (e.code = e.code || "", e.msg = e.msg || "", e.success = e.success ? 1 : 0, e.time = +e.time, e.begin = e.begin || "", !e.api || isNaN(e.time)) { if (e.code = e.code || "", e.msg = e.msg || "", e.success = e.success ? 1 : 0, e.time = +e.time, e.begin = e.begin || "", !e.api || isNaN(e.time)) {
return util.warn("[cloudMonitor] invalid time or api"), this return util.warn("[cloudMonitor] invalid time or api"), this
} }
...@@ -550,7 +548,6 @@ MiniProgramLogger.prototype = util.createObject(Reporter.prototype), util.ext(Re ...@@ -550,7 +548,6 @@ MiniProgramLogger.prototype = util.createObject(Reporter.prototype), util.ext(Re
return { return {
code: c, code: c,
msg: u, msg: u,
response: util.pick(10000) ? JSON.stringify(e).substr(0, 256) : "" response: util.pick(10000) ? JSON.stringify(e).substr(0, 256) : ""
}; };
} }
...@@ -753,18 +750,12 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex ...@@ -753,18 +750,12 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex
u = e.parseResponse(t.data); u = e.parseResponse(t.data);
f && (u = util.ext(u, util.safetyCall(f, [i.data, t.data], {}))); f && (u = util.ext(u, util.safetyCall(f, [i.data, t.data], {})));
} }
u.msg = JSON.stringify({
msg: u.msg,
request: i.data,
response: t.data
});
e.api(util.ext({ e.api(util.ext({
api: o, api: o,
success: !0, success: !0,
time: s - a, time: s - a,
code: "", code: "",
hzhData: t.data, msg: "",
msg: u.msg || '',
response: "" response: ""
}, u)) }, u))
}, fail: function (t) { }, fail: function (t) {
...@@ -775,11 +766,6 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex ...@@ -775,11 +766,6 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex
n == "" && t.error && (n = t.error); n == "" && t.error && (n = t.error);
var u = "", var u = "",
r = f ? util.safetyCall(f, [i.data], {}) : {}; r = f ? util.safetyCall(f, [i.data], {}) : {};
u.msg = JSON.stringify({
msg: u.msg,
request: i.data,
response: t.data
});
t && t.body && (u = (u = JSON.stringify(t.body)).substring(0, 256)), e.api(util.ext({ t && t.body && (u = (u = JSON.stringify(t.body)).substring(0, 256)), e.api(util.ext({
api: o, api: o,
success: !1, success: !1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment