改进useGlobalScope方法

This commit is contained in:
thinkphp
2017-04-24 17:10:25 +08:00
parent a7559e0488
commit 60e9790ebe

View File

@@ -1554,7 +1554,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
public static function useGlobalScope($use)
{
$model = new static();
return $model;
return $model->db($use);
}
/**