core/Form.php
public function getValues(bool $force = false)
    {
        if (!$force && $this->values !== null) {
            return $this->values;
        }
        $values = [];
        $fields = $this->getFields();
        foreach ($fields as $name => $field) {
            if ($field->offSave) {
                continue;
            }
            if ($field->close || ($field->offEdit && $this->type == 'edit')) {
                continue;
            }
            $box = Field::getInstance($field->type);
            if ($box != null) {
                $box->fill($field, $values);
            } else {
                $values[$name] = $field->value;
            }
        }
        $this->values = $values;
        return $values;
    }
public function getValues(bool $force = false)
    {
        if (!$force && $this->values !== null) {
            return $this->values;
        }
        $values = [];
        $fields = $this->getFields();
        foreach ($fields as $name => $field) {
            if ($field->offSave) {
                continue;
            }
            if ($field->close || ($field->offEdit && $this->type == 'edit')) {
                continue;
            }
            $box = Field::getInstance($field->type);
            if ($box != null) {
                $box->fill($field, $values);
            } else {
                $values[$name] = $field->value;
            }
        }
        $this->values = $values;
        return $values;
    }
获取表单值
@param bool $force 是否强制重新获取
@return array|null
@throws \Exception