diff --git a/New_College.Api/Controllers/Front/PcVolunteerController.cs b/New_College.Api/Controllers/Front/PcVolunteerController.cs index 826ec46..90dd145 100644 --- a/New_College.Api/Controllers/Front/PcVolunteerController.cs +++ b/New_College.Api/Controllers/Front/PcVolunteerController.cs @@ -369,17 +369,17 @@ namespace New_College.Api.Controllers.Front /// /// /// - [AllowAnonymous] - [HttpGet("downloadpdf")] - public IActionResult DownloadPdf(string url) - { - // 假设pdfBytes是已存在的PDF文件字节流 - byte[] pdfBytes = HelperHtmlConvertPdf.DoHtmlToByte(url); - // 设置响应头,指定Content-Type和文件名 - Response.Headers.Add("Content-Disposition", string.Format("attachment; filename={0}.pdf", DateTime.Now.ToString("MMddHHmmssfff"))); - Response.ContentType = "application/pdf"; - return File(pdfBytes, "application/pdf"); - } + //[AllowAnonymous] + //[HttpGet("downloadpdf")] + //public IActionResult DownloadPdf(string url) + //{ + // // 假设pdfBytes是已存在的PDF文件字节流 + // // byte[] pdfBytes = HelperHtmlConvertPdf.DoHtmlToByte(url); + // // 设置响应头,指定Content-Type和文件名 + // Response.Headers.Add("Content-Disposition", string.Format("attachment; filename={0}.pdf", DateTime.Now.ToString("MMddHHmmssfff"))); + // Response.ContentType = "application/pdf"; + // return File(pdfBytes, "application/pdf"); + //} } diff --git a/New_College.Api/New_College.xml b/New_College.Api/New_College.xml index 883646c..859d863 100644 --- a/New_College.Api/New_College.xml +++ b/New_College.Api/New_College.xml @@ -571,13 +571,6 @@ - - - - - - - 获取省市区