update 过滤更新非必要数据
This commit is contained in:
parent
16586cdd14
commit
326a6571b2
@ -289,6 +289,10 @@ trait BaseOptionsTrait
|
||||
if ($field == $this->getPk()) {
|
||||
unset($data[$field]);
|
||||
}
|
||||
|
||||
if (in_array($field, [$this->createTime, $this->updateTime, $this->deleteTime])) {
|
||||
unset($data[$field]);
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user