Authored by weiqingting

提交

... ... @@ -11,7 +11,7 @@ var grayroute = require("./mid/grayrouter");
/*session 配置*/
var options = {
secret: 'yohobuy.portal', //session配置
secret: 'yohobuy.shops', //session配置
cookie: {secure: false, maxAge: 3600000},
resave: false,
saveUninitialized: true
... ...
... ... @@ -41,7 +41,7 @@ Controller.prototype.__define=function(method,router,view,apis,callback,clientmo
console.log("session Controller");
var local = { __session__: {}, $extend: {} };
var local = { __session__: req.session, $extend: {} };
/*如果接口不存在 就实现express 原来的方法*/
if(!apis.length){
var model={};
... ... @@ -50,8 +50,7 @@ Controller.prototype.__define=function(method,router,view,apis,callback,clientmo
}
if(view){
console.log("view1");
res.end();
// res.render(view,local,me.client(res,view,model,clientmodel));
res.render(view,local,me.client(res,view,model,clientmodel));
}
return;
... ...