From 2615cf99b704b02002c081f9a972b051b2d172b1 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 29 Jun 2017 11:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3scope=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Model.php b/library/think/Model.php index 78691916..602f77ab 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1646,6 +1646,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $model = new static(); $query = $model->db(); $params = func_get_args(); + array_shift($params); array_unshift($params, $query); if ($name instanceof \Closure) { call_user_func_array($name, $params);