controller里添加closeDb方法

This commit is contained in:
welefen 2014-07-10 20:14:16 +08:00
parent 92aaaad713
commit 8f9bb5bed2

View File

@ -430,6 +430,13 @@ module.exports = Class(function() {
this.end(obj);
return getDefer().promise;
},
/**
* 关闭数据库连接
* @return {[type]} [description]
*/
closeDb: function(){
thinkRequire('Model').close();
},
/**
* 发送执行时间
* @param {[type]} name [description]