测试分支提交
This commit is contained in:
parent
e14729f621
commit
3f5dc410e3
@ -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("过期访问!");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user