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