From 60e9790ebefb8cdc6f87599bff3be4c25a7bd60c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 24 Apr 2017 17:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BuseGlobalScope=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 6ba89de6..7281d9af 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1554,7 +1554,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess public static function useGlobalScope($use) { $model = new static(); - return $model; + return $model->db($use); } /**