mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
model类一处代码简化
This commit is contained in:
@@ -72,11 +72,7 @@ class Model
|
||||
list($this->dbName, $this->name) = explode('.', $this->name);
|
||||
}
|
||||
|
||||
if (!empty($config['prefix'])) {
|
||||
$this->tablePrefix = $config['prefix'];
|
||||
} else {
|
||||
$this->tablePrefix = Config::get('database.prefix');
|
||||
}
|
||||
$this->tablePrefix = !empty($config['prefix']) ? $config['prefix'] : Config::get('database.prefix');
|
||||
if (!empty($config['connection'])) {
|
||||
$this->connection = $config['connection'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user