Commit d79d95af authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 468cc91e
import monitor from '/utils/alipayLogger';
var fundebug = require('./utils/fundebug.0.2.0.min.js');
fundebug.init(
{
apikey: 'c0c5937571f82aecab3f7578bea5d8163455cd2407863f94829bee12324f57b4'
})
App(monitor.hookApp({
......@@ -12,6 +17,8 @@ App(monitor.hookApp({
onLaunch(options) {
monitor.init({
pid: "qzhr85jigetfamuqniwz4q==",
options: options,
......@@ -35,12 +42,10 @@ App(monitor.hookApp({
// options.query == {number:1}
},
// onError(err)
// {
// // debugger;
// console.log("草泥马");
// // fundebug.onError(err);
// },
onError(err)
{
fundebug.onError(err);
},
}));
......@@ -750,13 +750,6 @@ 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,
......@@ -773,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