Commit e8a373c7 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 0e66f00b
......@@ -138,7 +138,6 @@ App(monitor.hookApp({
onError(err)
{
monitor.error(err)
fundebug.onError(err);
},
......
......@@ -184,7 +184,6 @@ var SEQUENCE = Date.now(),
},
util_1 = util,
pushToQueue = function (e, t) {
// debugger;
var i;
{
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
msg: a,
begin: s
} : 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)) {
return util.warn("[cloudMonitor] invalid time or api"), this
}
......@@ -550,7 +548,6 @@ MiniProgramLogger.prototype = util.createObject(Reporter.prototype), util.ext(Re
return {
code: c,
msg: u,
response: util.pick(10000) ? JSON.stringify(e).substr(0, 256) : ""
};
}
......@@ -753,18 +750,12 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex
u = e.parseResponse(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({
api: o,
success: !0,
time: s - a,
code: "",
hzhData: t.data,
msg: u.msg || '',
msg: "",
response: ""
}, u))
}, fail: function (t) {
......@@ -775,11 +766,6 @@ AlipayLogger.prototype = util.createObject(MiniProgramLogger.prototype), util.ex
n == "" && t.error && (n = t.error);
var u = "",
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({
api: o,
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