mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
完善Model类单元测试
This commit is contained in:
@@ -1544,6 +1544,7 @@ class Model
|
||||
}
|
||||
|
||||
$fields = array_keys($info);
|
||||
$bind = $type = [];
|
||||
foreach ($info as $key => $val) {
|
||||
// 记录字段类型
|
||||
$type[$key] = $val['type'];
|
||||
@@ -1835,7 +1836,7 @@ class Model
|
||||
if (!empty($args) && is_array($args)) {
|
||||
$options = array_merge($options, $args);
|
||||
}
|
||||
} elseif (is_array($scope)) {
|
||||
} else {
|
||||
// 直接传入命名范围定义
|
||||
$options = $scope;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user