mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进scope动态调用
This commit is contained in:
@@ -673,7 +673,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
}
|
||||
}
|
||||
}
|
||||
return $class;
|
||||
return $model;
|
||||
}
|
||||
|
||||
// 解析模型的完整命名空间
|
||||
@@ -758,7 +758,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$class = self::db();
|
||||
array_unshift($args, $class);
|
||||
call_user_func_array([$this, $method], $args);
|
||||
return $class;
|
||||
return $this;
|
||||
} else {
|
||||
throw new Exception(__CLASS__ . ':' . $method . ' method not exist');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user