修改数据库基础操作

This commit is contained in:
JaguarJack 2020-06-25 09:25:34 +08:00
parent 707070a06e
commit ce71b10d1c

View File

@ -57,7 +57,6 @@ trait BaseOptionsTrait
*/
public function updateBy($id, $data, $field = ''): bool
{
if (static::update($data, [$field ? : $this->getPk() => $id], $this->field)) {
return true;
}