* @package product * @link https://www.zentao.net */ class fileTao extends fileModel { /** * 保存一条文件数据。 * Save one file data. * * @param array $file * @param string $strSkipFields * @access protected * @return int */ protected function saveFile(array $file, string $strSkipFields = ''): int|false { if(empty($file)) return false; $this->dao->insert(TABLE_FILE)->data($file, $strSkipFields)->exec(); return $this->dao->lastInsertID(); } }