mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进useGlobalScope方法
This commit is contained in:
@@ -1554,7 +1554,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
public static function useGlobalScope($use)
|
public static function useGlobalScope($use)
|
||||||
{
|
{
|
||||||
$model = new static();
|
$model = new static();
|
||||||
return $model;
|
return $model->db($use);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user