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

Loading…
Cancel
Save