From b94346a6b4863282ed8caa95dfda7757ea9a1404 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 4 Feb 2016 21:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=E7=B1=BB=E7=9A=84getTab?= =?UTF-8?q?leInfo=E6=96=B9=E6=B3=95=20=E5=BD=93=E7=94=A8table=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=8C=87=E5=AE=9A=E5=A4=9A=E4=B8=AA=E8=A1=A8join?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=AD=97=E6=AE=B5=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 4 ++++ 1 file changed, 4 insertions(+) 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) {