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