Exemplo n.º 1
0
        private bool ZipFileOperation(string fileName, string md5, string filePathAll)
        {
            string newZipFilePath = FileHelper.CopyTo(filePathAll);

            if (md5 == Common.Md5(newZipFilePath))
            {
                if (Operation.UnZipOperation(newZipFilePath))
                {
                    DBLogger.Insert(DBLogger.GetLoggerInfo(fileName, "上传的签名zip文件解压缩成功", 1));
                    return(true);
                }
                DBLogger.Insert(DBLogger.GetLoggerInfo(fileName, "上传的签名zip文件解压缩失败", 0));
                return(false);
            }
            else
            {
                DBLogger.Insert(DBLogger.GetLoggerInfo(fileName, "上传的签名zip文件验证不正确", 0));
                return(false);
            }
        }