From 6f2f4fb89d4c2ea8308448afbd08f66c119cba3f Mon Sep 17 00:00:00 2001 From: nyzcling Date: Wed, 27 Dec 2017 20:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Attachment.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/model/Attachment.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/common/model/Attachment.php b/application/common/model/Attachment.php index 3e472b6e4..73a77c4d6 100644 --- a/application/common/model/Attachment.php +++ b/application/common/model/Attachment.php @@ -15,5 +15,8 @@ class Attachment extends Model // 定义字段类型 protected $type = [ ]; - + public function setUploadtimeAttr($value) + { + return strtotime($value); + } } -- Gitee