Showing
3 changed files
with
6 additions
and
8 deletions
@@ -69,10 +69,10 @@ app.use(session({ | @@ -69,10 +69,10 @@ app.use(session({ | ||
69 | domain: 'yohoblk.com', | 69 | domain: 'yohoblk.com', |
70 | httpOnly: false | 70 | httpOnly: false |
71 | }, | 71 | }, |
72 | - // store: new MemcachedStore({ | ||
73 | - // hosts: config.memcache.session, | ||
74 | - // prefix: 'yohoblk_session:' | ||
75 | - // }) | 72 | + store: new MemcachedStore({ |
73 | + hosts: config.memcache.session, | ||
74 | + prefix: 'yohoblk_session:' | ||
75 | + }) | ||
76 | })); | 76 | })); |
77 | 77 | ||
78 | app.use((req, res, next) => { | 78 | app.use((req, res, next) => { |
@@ -4,15 +4,13 @@ | @@ -4,15 +4,13 @@ | ||
4 | * @date: 2016/05/09 | 4 | * @date: 2016/05/09 |
5 | */ | 5 | */ |
6 | 'use strict'; | 6 | 'use strict'; |
7 | -const _ = require('lodash'); | ||
8 | -const helpers = global.yoho.helpers; | ||
9 | const brand = require('./brand'); | 7 | const brand = require('./brand'); |
10 | 8 | ||
11 | /** | 9 | /** |
12 | * 频道选择页 | 10 | * 频道选择页 |
13 | */ | 11 | */ |
14 | const component = { | 12 | const component = { |
15 | - index: (req, res, next) => { | 13 | + index: (req, res) => { |
16 | res.render('index', { | 14 | res.render('index', { |
17 | module: 'example', | 15 | module: 'example', |
18 | page: 'home' | 16 | page: 'home' |
-
Please register or login to post a comment