From c622ebb5916bb715f07111e741016d8179367ce1 Mon Sep 17 00:00:00 2001 From: lingyang <369845068@qq.com> Date: Sat, 1 Jul 2023 23:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8B=E8=BD=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/Controllers/Common/VideoController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/24Hour/Controllers/Common/VideoController.cs b/24Hour/Controllers/Common/VideoController.cs index 19f255e..81bad1b 100644 --- a/24Hour/Controllers/Common/VideoController.cs +++ b/24Hour/Controllers/Common/VideoController.cs @@ -14,7 +14,7 @@ namespace _24Hour.Controllers.Common /// /// 视频举报 /// - [Authorize] + //[Authorize] [ApiController] [Route("api/Video")] public class VideoController : Controller @@ -256,6 +256,8 @@ namespace _24Hour.Controllers.Common /// [HttpGet] [Route("Download")] + [AllowAnonymous] + public FileResult Download(string path) { var dic = Path.Combine(Environment.CurrentDirectory, "wwwroot");