Think/Model/AdvModel.php
protected function saveBlobFields(&$data)
    {
        if (!empty($this->blobFields)) {
            foreach ($this->blobValues as $key => $val) {
                if (strpos($key, '@?id@')) {
                    $key = str_replace('@?id@', $data[$this->getPk()], $key);
                }
                F($key, $val);
            }
        }
    }
protected function saveBlobFields(&$data)
    {
        if (!empty($this->blobFields)) {
            foreach ($this->blobValues as $key => $val) {
                if (strpos($key, '@?id@')) {
                    $key = str_replace('@?id@', $data[$this->getPk()], $key);
                }
                F($key, $val);
            }
        }
    }
保存File方式的字段


@param array $data 保存的数据

@return void