...
|
...
|
@@ -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;
|
...
|
...
|
|