更改测试

This commit is contained in:
Liangwq 2026-05-22 09:50:54 +08:00
parent ad04506904
commit e14729f621

View File

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