Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
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
htoooth
8 years ago
Commit
87914c25884591dc0ae10a25652cc62bfb983547
1 parent
e2447d75
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
Procfile
doraemon/middleware/yohoSession.js
package.json
Procfile
View file @
87914c2
proxy: d:\dev\traefik\traefik.exe -c d:\dev\traefik\conf.toml
mem: d:\dev\memcached\memcached.exe
proxy: d:\soft\traefik\traefik.exe -c d:\soft\traefik\conf.toml
mem: d:\soft\memcached\memcached.exe -vv
...
...
doraemon/middleware/yohoSession.js
View file @
87914c2
const
config
=
global
.
yoho
.
config
;
const
memcachedSession
=
require
(
'yoho-express-session'
);
const
onHeaders
=
require
(
'on-headers'
);
const
_
=
require
(
'lodash'
);
const
uuid
=
require
(
'uuid'
);
...
...
@@ -44,10 +43,8 @@ function yohoSession(opts) {
writable
:
false
});
onHeaders
(
res
,
function
()
{
// 备份数据
req
[
opts
.
backSession
].
sessionBack
=
req
.
session
;
});
// 备份数据
req
[
opts
.
backSession
].
sessionBack
=
req
.
session
;
next
();
};
...
...
package.json
View file @
87914c2
...
...
@@ -36,7 +36,6 @@
"md5"
:
"^2.1.0"
,
"moment"
:
"^2.14.1"
,
"morgan"
:
"^1.7.0"
,
"on-headers"
:
"^1.0.1"
,
"oneapm"
:
"^1.2.20"
,
"passport"
:
"^0.3.2"
,
"passport-douban"
:
"0.0.1"
,
...
...
Please
register
or
login
to post a comment