From 326ef84f3b0013206ea3a14709da9a4ebabb86ad Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 4 Jun 2016 17:33:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BInput=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Input.php | 2 +- library/think/db/Query.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Input.php b/library/think/Input.php index 834bd5f0..96b7e90e 100644 --- a/library/think/Input.php +++ b/library/think/Input.php @@ -410,7 +410,7 @@ class Input } else { if (is_array($filter)) { $result = $filter; - } elseif (is_string($filter) && strpos($filter, ',')) { + } elseif (is_string($filter) && false === strpos($filter, '/') && strpos($filter, ',')) { $result = explode(',', $filter); } else { $result = [$filter]; diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 3d757d99..ce5267f5 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -503,7 +503,7 @@ class Query * 支持使用数据库字段和方法 * @access public * @param string|array $field 字段名 - * @param string $value 字段值 + * @param mixed $value 字段值 * @return integer */ public function setField($field, $value = '')