修复写入日期格式问题

This commit is contained in:
appqy 2023-01-14 00:12:51 +08:00
parent 85fbaabe2c
commit c1a6636836
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ class General extends Model
// 开启自动写入时间戳字段 // 开启自动写入时间戳字段
protected $autoWriteTimestamp = 'int'; protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名 // 定义时间戳字段名
protected $updateTime = 'updatetime'; protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性 // 追加属性
protected $append = [ protected $append = [