mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正ORM获取模型名在linux的问题
This commit is contained in:
@@ -68,7 +68,7 @@ class ORM
|
||||
|
||||
public static function __callStatic($method, $params)
|
||||
{
|
||||
$name = basename(get_called_class());
|
||||
$name = basename(str_replace('\\', '/', get_called_class()));
|
||||
if (!isset(self::$instance[$name])) {
|
||||
// 自动实例化模型类
|
||||
self::$instance[$name] = new \think\Model($name, static::$config);
|
||||
|
||||
Reference in New Issue
Block a user