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); + } }