ソースを参照

!29 修正附件管理编辑后保存提示uploadtime字段数据库截断错误
Merge pull request !29 from nyzcling/master

nyzcling 8 年 前
コミット
b72ddda452
1 ファイル変更4 行追加1 行削除
  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);
+	}
 }