src/Core/Helper.php
static function mkfile($file_name, $mode = 0644, $dir_mode = 0755)
    {
        if (!file_exists($file_name)) {
            $file_path = dirname($file_name);
            $createFolder = self::createFolders($file_path, $dir_mode, true);
            if ($createFolder) {
                $fp = fopen($file_name, 'w+');
                if ($fp) {
                    fclose($fp);
                    chmod($file_name, $mode);
                    return true;
                }
            }

            return false;
        }
        return true;
    }
static function mkfile($file_name, $mode = 0644, $dir_mode = 0755)
    {
        if (!file_exists($file_name)) {
            $file_path = dirname($file_name);
            $createFolder = self::createFolders($file_path, $dir_mode, true);
            if ($createFolder) {
                $fp = fopen($file_name, 'w+');
                if ($fp) {
                    fclose($fp);
                    chmod($file_name, $mode);
                    return true;
                }
            }

            return false;
        }
        return true;
    }
根据文件名创建文件

@param string $file_name
@param int $mode
@param int $dir_mode
@return bool