This commit is contained in:
thinkphp
2016-12-23 11:17:34 +08:00
parent d07c5eff83
commit 0210d3a1fb

View File

@@ -334,10 +334,6 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
case 'integer':
default:
$value = $_SERVER['REQUEST_TIME'];
if (false !== strpos($type, '\\')) {
// 传入类名
$value = new $type($value);
}
break;
}
} elseif (is_string($this->autoWriteTimestamp) && in_array(strtolower($this->autoWriteTimestamp), ['datetime', 'date', 'timestamp'])) {