From a9c1d7df9d374ce3c5f49870a5f7b7998044c15a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 15 Mar 2018 13:50:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BBview=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=9A=84=E6=95=B0=E7=BB=84=E8=A1=A8=E5=90=8D=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 70b8279d..041e5e6f 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -708,6 +708,7 @@ class Query // 传入的表名为数组 if (is_array($join)) { $table = $join; + $alias = array_shift($join); } else { $join = trim($join); if (false !== strpos($join, '(')) {