/** * 得到分库后的库名 * @param string $key * @return string */ protected function _dbName($key) { return Slice::database($this->_sliceDb)->name($this->_db)->key($key)->execute(); }