Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-back
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-back
Commits
d79d95af
Commit
d79d95af
authored
Jun 23, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
468cc91e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
18 deletions
+11
-18
app.js
app.js
+11
-6
alipayLogger.js
utils/alipayLogger.js
+0
-12
No files found.
app.js
View file @
d79d95af
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
);
},
}));
utils/alipayLogger.js
View file @
d79d95af
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment