改进Builder类parseDatetime方法

This commit is contained in:
thinkphp
2016-07-15 17:09:52 +08:00
parent f5771d0eb1
commit fd8ccb9a2d

View File

@@ -369,7 +369,7 @@ abstract class Builder
protected function parseDateTime($value, $key, $options = [])
{
// 获取时间字段类型
$type = $this->query->getTableInfo('', 'type');
$type = $this->query->getTableInfo($options['table'], 'type');
if (isset($options['field_type'][$key])) {
$info = $options['field_type'][$key];
} elseif (isset($type[$key])) {