Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
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
fda1212eebbb7d00a4bda6d9ee62215507bd9efd
1 parent
3d86c0ac
cache key
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
config/common.js
doraemon/middleware/ssr.js
package.json
config/common.js
View file @
fda1212
...
...
@@ -31,7 +31,7 @@ const domains = {
module
.
exports
=
{
app
:
'h5'
,
appVersion
:
'6.
8.9
'
,
// 调用api的版本
appVersion
:
'6.
9.5
'
,
// 调用api的版本
appName
:
'yoho-community-web'
,
port
:
6001
,
siteUrl
:
'//m.yohobuy.com'
,
...
...
doraemon/middleware/ssr.js
View file @
fda1212
...
...
@@ -93,8 +93,8 @@ const getCacheKey = (req, route) => {
ck
+=
`
?
$
{
qks
.
map
(
qk
=>
`
$
{
qk
}
=
$
{
req
.
query
&&
req
.
query
[
qk
]
||
''
}
`
).
join
(
'&'
)}
`
;
}
ck
+=
`
|
$
{
isIos
?
'ios'
:
'android'
}
`
;
ck
+=
`
|
$
{
isIos
?
'ios'
:
'android'
}
|
$
{
config
.
appVersion
}
`
;
console
.
log
(
ck
);
return
md5
(
ck
);
};
...
...
package.json
View file @
fda1212
{
"name"
:
"yoho-community-web"
,
"version"
:
"6.9.5-
4
"
,
"version"
:
"6.9.5-
5
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
Please
register
or
login
to post a comment