Authored by ccbikai

代码检查

@@ -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'
@@ -56,4 +56,4 @@ exports.favoriteDelete = (uid, favId, type) => { @@ -56,4 +56,4 @@ exports.favoriteDelete = (uid, favId, type) => {
56 type: type, 56 type: type,
57 fav_id: favId 57 fav_id: favId
58 }); 58 });
59 -};  
  59 +};