mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正Model类
This commit is contained in:
@@ -163,7 +163,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$item[$key] = $data;
|
||||
} else {
|
||||
// 模型属性
|
||||
$item[$key] = $this->$key;
|
||||
$item[$key] = $this->__get($key);
|
||||
}
|
||||
}
|
||||
return !empty($item) ? $item : [];
|
||||
|
||||
Reference in New Issue
Block a user