Browse Source

调整下载文件

master
林杨 2 years ago
parent
commit
c622ebb591
  1. 4
      24Hour/Controllers/Common/VideoController.cs

4
24Hour/Controllers/Common/VideoController.cs

@ -14,7 +14,7 @@ namespace _24Hour.Controllers.Common
/// <summary> /// <summary>
/// 视频举报 /// 视频举报
/// </summary> /// </summary>
[Authorize] //[Authorize]
[ApiController] [ApiController]
[Route("api/Video")] [Route("api/Video")]
public class VideoController : Controller public class VideoController : Controller
@ -256,6 +256,8 @@ namespace _24Hour.Controllers.Common
/// <exception cref="Exception"></exception> /// <exception cref="Exception"></exception>
[HttpGet] [HttpGet]
[Route("Download")] [Route("Download")]
[AllowAnonymous]
public FileResult Download(string path) public FileResult Download(string path)
{ {
var dic = Path.Combine(Environment.CurrentDirectory, "wwwroot"); var dic = Path.Combine(Environment.CurrentDirectory, "wwwroot");

Loading…
Cancel
Save