测试分支提交

This commit is contained in:
Liangwq 2026-05-22 09:56:38 +08:00
parent e14729f621
commit 3f5dc410e3

View File

@ -25,7 +25,7 @@ public class DownloadController : Controller
[HttpGet("")] [HttpGet("")]
public IActionResult Download(string fileName, string sign, long t) public IActionResult Download(string fileName, string sign, long t)
{ {
// 1. 校验时效5分钟内有效-- // 1. 校验时效5分钟内有效
var now = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); var now = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
if (now - t > 300000) if (now - t > 300000)
return BadRequest("过期访问!"); return BadRequest("过期访问!");