Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
aa4a220cbb041e4ba3d2a4aaff5562900d5162d9
1 parent
7cd1a581
md5 uid
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
apps/common/report-app.js
doraemon/middleware/ssr.js
apps/common/report-app.js
View file @
aa4a220
import
axios
from
'axios'
;
import
md5
from
'md5'
;
export
default
class
reportApp
{
constructor
(
params
=
{})
{
...
...
@@ -9,7 +10,7 @@ export default class reportApp {
ab
:
params
.
buildId
,
ca
:
'0'
,
net
:
'unknown'
,
sid
:
params
.
visitId
,
sid
:
md5
(
`
$
{
params
.
udid
}
_$
{
new
Date
().
getTime
()}
`
)
};
this
.
params
=
{
mst
:
''
,
...
...
@@ -62,7 +63,7 @@ export default class reportApp {
device
:
this
.
device
,
events
:
[
Object
.
assign
({
uid
:
uid
,
uid
:
md5
(
uid
)
,
ts
:
new
Date
().
getTime
()
+
'000000'
,
pt
:
pt
,
pn
:
pn
,
...
...
doraemon/middleware/ssr.js
View file @
aa4a220
...
...
@@ -48,8 +48,7 @@ const getContext = (req) => {
clientIp
:
req
.
yoho
.
clientIp
,
version
:
req
.
query
.
app_version
||
pkg
.
version
,
osVersion
:
req
.
query
.
os_version
||
''
,
buildId
:
req
.
app
.
locals
.
buildId
,
visitId
:
md5
(
`
$
{
req
.
yoho
.
udid
}
_$
{
new
Date
().
getTime
()}
`
)
buildId
:
req
.
app
.
locals
.
buildId
},
ua
:
req
.
get
(
'user-agent'
),
hostname
:
os
.
hostname
(),
...
...
Please
register
or
login
to post a comment