diff --git a/library/think/db/Query.php b/library/think/db/Query.php index eb14638a..dc854a6c 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1111,7 +1111,6 @@ class Query if (is_string($table)) { if (strpos($table, ')')) { // 子查询 - $table = $table; } elseif (strpos($table, ',')) { $tables = explode(',', $table); $table = []; @@ -1126,7 +1125,8 @@ class Query } } elseif (strpos($table, ' ')) { list($table, $alias) = explode(' ', $table); - $table = [$table => $alias]; + + $table = [$table => $alias]; $this->alias($table); } } else {