1.引用 lonic.Zip 包
public void GenerateUser(string cardInfoID, string trueRealName, byte? isPass, DateTime? startTime, DateTime? endTime)
{
var root = Server.MapPath("~");
m_QualificationAuditService.GenerateUser(root, cardInfoID, trueRealName, isPass, startTime, endTime);
string fileName = DateTime.Today.ToString("yyyy-MM-dd") + "用户职业认证导出.zip";
System.Web.HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(fileName, Encoding.UTF8).ToString());
System.Web.HttpContext.Current.Response.ContentType = "application/zip";
System.Web.HttpContext.Current.Response.End();
}
/// <summary>
/// 生成用户信息ZIP
/// </summary>
/// <param name="jObject"></param>
/// <returns></returns>
public void GenerateUser