mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进一处 错误
This commit is contained in:
@@ -853,7 +853,9 @@ class Query
|
||||
{
|
||||
if (empty($this->options['table'])) {
|
||||
$tableName = $this->connection->getConfig('prefix');
|
||||
$tableName .= Loader::parseName($this->options['name']);
|
||||
if (isset($this->options['name'])) {
|
||||
$tableName .= Loader::parseName($this->options['name']);
|
||||
}
|
||||
} else {
|
||||
$tableName = $this->options['table'];
|
||||
}
|
||||
|
||||
@@ -15,7 +15,10 @@ trait Instance
|
||||
{
|
||||
protected static $instance = null;
|
||||
|
||||
// 实例化(单例)
|
||||
/**
|
||||
* @param array $options
|
||||
* @return static
|
||||
*/
|
||||
public static function instance($options = [])
|
||||
{
|
||||
if (is_null(self::$instance)) {
|
||||
|
||||
Reference in New Issue
Block a user