作者 nyzcling

更新 Attachment.php

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