修改数据库基础操作
This commit is contained in:
parent
707070a06e
commit
ce71b10d1c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user