mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正allowfield方法影响时间字段写入的问题
This commit is contained in:
@@ -1099,6 +1099,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$field = $this->field;
|
||||
} elseif (!empty($this->field)) {
|
||||
$field = array_merge($this->field, $auto);
|
||||
if ($this->autoWriteTimestamp) {
|
||||
array_push($field, $this->createTime, $this->updateTime);
|
||||
}
|
||||
} else {
|
||||
$field = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user