Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nodejs-yitong-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Metrics
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
yitong-public
nodejs-yitong-sdk
Commits
026fc1fb
Commit
026fc1fb
authored
May 10, 2021
by
孙傲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统一上报增加 timestamp
parent
6b490591
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
package.json
package.json
+1
-1
yitong-sdk.js
yitong-sdk.js
+1
-0
No files found.
package.json
View file @
026fc1fb
{
"name"
:
"nodejs-yitong-sdk"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
2
"
,
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
yitong-sdk.js
View file @
026fc1fb
...
...
@@ -377,6 +377,7 @@ function track(opts) {
ctx
.
track
=
true
;
// 全部接口收集
ctx
.
trackEvent
=
{
__referer__
:
`
${
opts
.
serviceName
}
:
${
ctx
.
path
}
`
,
timestamp
:
Date
.
now
(),
app_key
:
ctx
.
getAppKey
()
||
_
.
get
(
ctx
.
token
,
'
aud
'
)
||
opts
.
appKey
,
event
:
{
key
:
'
api
'
...
...
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