diff --git a/library/think/Model.php b/library/think/Model.php index 8b14b2f6..225257d8 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1094,6 +1094,10 @@ class Model if (!$tableName) { $tableName = isset($this->options['table']) ? $this->options['table'] : $this->getTableName(); } + if (strpos($tableName, ',')) { + // 多表不获取字段信息 + return false; + } $guid = md5($tableName); $result = Cache::get($guid); if (!$result) {