mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
优化
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user