From d76137382cf6cdd616d59e247d30751433d2e25a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 11 Aug 2016 16:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84field?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index dcf735b9..8dcfcfa0 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -747,9 +747,9 @@ class Query } if (isset($this->options['field'])) { - $field = $this->options['field'] + $field; + $field = array_merge($this->options['field'], $field); } - $this->options['field'] = $field; + $this->options['field'] = array_unique($field); return $this; }