mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-10 00:22:48 +08:00
Query类修改 find方法查询不到数据返回 NULL
This commit is contained in:
@@ -1753,7 +1753,6 @@ class Query
|
||||
|
||||
// 返回结果处理
|
||||
if ($resultSet) {
|
||||
|
||||
// 数据列表读取后的处理
|
||||
if (!empty($this->model)) {
|
||||
// 生成模型对象
|
||||
@@ -1861,7 +1860,7 @@ class Query
|
||||
throw new DataNotFoundException('table data not Found:' . $options['table'], $options['table'], $options);
|
||||
}
|
||||
} else {
|
||||
$data = false;
|
||||
$data = null;
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user