改进数据更新检查

This commit is contained in:
thinkphp
2017-04-13 16:21:45 +08:00
parent e9b0abd7f3
commit 79b5d43023
2 changed files with 27 additions and 22 deletions

View File

@@ -60,7 +60,6 @@ trait SoftDelete
$name = $this->getDeleteTimeField();
if (!$force) {
// 软删除
$this->change[] = $name;
$this->data[$name] = $this->autoWriteTimestamp($name);
$result = $this->isUpdate()->save();
} else {