mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
优化
This commit is contained in:
@@ -334,10 +334,6 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
case 'integer':
|
case 'integer':
|
||||||
default:
|
default:
|
||||||
$value = $_SERVER['REQUEST_TIME'];
|
$value = $_SERVER['REQUEST_TIME'];
|
||||||
if (false !== strpos($type, '\\')) {
|
|
||||||
// 传入类名
|
|
||||||
$value = new $type($value);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} elseif (is_string($this->autoWriteTimestamp) && in_array(strtolower($this->autoWriteTimestamp), ['datetime', 'date', 'timestamp'])) {
|
} elseif (is_string($this->autoWriteTimestamp) && in_array(strtolower($this->autoWriteTimestamp), ['datetime', 'date', 'timestamp'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user