This commit is contained in:
2022-08-23 01:12:31 +08:00
parent 1249e2c80b
commit 972d695001
+2 -2
View File
@@ -7,7 +7,7 @@ local _M = {}
--local strip_path = require("strip_path")
--local Upyun = require('upyun')
function _M.upt(uri) {
function _M.upt(uri)
local secret = ngx.var.upt_secret
local duration = ngx.var.upt_duration
local etime = os.time() + duration
@@ -15,6 +15,6 @@ function _M.upt(uri) {
ngx.log(ngx.ERR, 'sign...' .. sign .. ' etime..' .. etime)
local upt = string.sub(sign, 13, 13 + 7) .. etime
ngx.say(upt)
}
end
return _M