mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进Builder类parseDatetime方法
This commit is contained in:
@@ -369,7 +369,7 @@ abstract class Builder
|
|||||||
protected function parseDateTime($value, $key, $options = [])
|
protected function parseDateTime($value, $key, $options = [])
|
||||||
{
|
{
|
||||||
// 获取时间字段类型
|
// 获取时间字段类型
|
||||||
$type = $this->query->getTableInfo('', 'type');
|
$type = $this->query->getTableInfo($options['table'], 'type');
|
||||||
if (isset($options['field_type'][$key])) {
|
if (isset($options['field_type'][$key])) {
|
||||||
$info = $options['field_type'][$key];
|
$info = $options['field_type'][$key];
|
||||||
} elseif (isset($type[$key])) {
|
} elseif (isset($type[$key])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user