protected function initConnect($master = true) { if (1 == C('DB_DEPLOY_TYPE')) { // 采用分布式数据库 $this->_linkID = $this->multiConnect($master); } else { // 默认单数据库 if (!$this->connected) { $this->_linkID = $this->connect(); } } }