From 6f2f4fb89d4c2ea8308448afbd08f66c119cba3f Mon Sep 17 00:00:00 2001 From: nyzcling <nyzcling@126.com> Date: Wed, 27 Dec 2017 20:51:44 +0800 Subject: [PATCH] 更新 Attachment.php --- 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 3e472b6..73a77c4 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); + } } -- libgit2 0.24.0