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