core/Form.php
public function update($id = 0, $replace = [])
    {
        if (empty($this->tbName)) {
            return;
        }
        $this->id = $id;
        $values = $this->getValues(true);
        $values = array_merge($values, $replace);
        DB::update($this->tbName, $values, $id);
        return $id;
    }
public function update($id = 0, $replace = [])
    {
        if (empty($this->tbName)) {
            return;
        }
        $this->id = $id;
        $values = $this->getValues(true);
        $values = array_merge($values, $replace);
        DB::update($this->tbName, $values, $id);
        return $id;
    }
编辑值