mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
controller里添加closeDb方法
This commit is contained in:
parent
92aaaad713
commit
8f9bb5bed2
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user