更新 Attachment.php

pull/29/head
nyzcling 2017-12-27 20:51:44 +08:00
parent 483b901cc4
commit 6f2f4fb89d
1 changed files with 4 additions and 1 deletions

View File

@ -15,5 +15,8 @@ class Attachment extends Model
// 定义字段类型
protected $type = [
];
public function setUploadtimeAttr($value)
{
return strtotime($value);
}
}