Browse Source

更新 Attachment.php

nyzcling 8 years ago
parent
commit
6f2f4fb89d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      application/common/model/Attachment.php

+ 4 - 1
application/common/model/Attachment.php

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