From b7de2f0db449989ac1121e70e677728d8f498407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=87=E5=AE=A2?= <9714928@qq.com> Date: Fri, 9 Sep 2016 18:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20php7=20=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E6=8C=87=E9=92=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 数组存在key()方法无法正确获得预定值 --- library/think/Request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Request.php b/library/think/Request.php index d4ce9fa8..c34a4b14 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -974,6 +974,7 @@ class Request $filter[] = $default; if (is_array($data)) { array_walk_recursive($data, [$this, 'filterValue'], $filter); + reset($data); } else { $this->filterValue($data, $name, $filter); }