改进数据库连接的问题

This commit is contained in:
thinkphp
2016-04-27 15:44:50 +08:00
parent 6915f0249e
commit 00cd2e61d9
3 changed files with 6 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
// 数据库对象池
private static $links = [];
// 数据库配置
protected static $connection;
protected static $connection = [];
// 数据表名称
protected static $table;
// 回调事件