From 0210d3a1fb8f8a76138f2acbb624692289173643 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 23 Dec 2016 11:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index 13ed8fc1..f917adf2 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -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'])) {