作者 nyzcling
提交者 Karson

!29 修正附件管理编辑后保存提示uploadtime字段数据库截断错误

Merge pull request !29 from nyzcling/master
@@ -15,5 +15,8 @@ class Attachment extends Model @@ -15,5 +15,8 @@ class Attachment extends Model
15 // 定义字段类型 15 // 定义字段类型
16 protected $type = [ 16 protected $type = [
17 ]; 17 ];
18 - 18 + public function setUploadtimeAttr($value)
  19 + {
  20 + return strtotime($value);
  21 + }
19 } 22 }