fix
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ local _M = {}
|
|||||||
--local strip_path = require("strip_path")
|
--local strip_path = require("strip_path")
|
||||||
--local Upyun = require('upyun')
|
--local Upyun = require('upyun')
|
||||||
|
|
||||||
function _M.upt(uri) {
|
function _M.upt(uri)
|
||||||
local secret = ngx.var.upt_secret
|
local secret = ngx.var.upt_secret
|
||||||
local duration = ngx.var.upt_duration
|
local duration = ngx.var.upt_duration
|
||||||
local etime = os.time() + duration
|
local etime = os.time() + duration
|
||||||
@@ -15,6 +15,6 @@ function _M.upt(uri) {
|
|||||||
ngx.log(ngx.ERR, 'sign...' .. sign .. ' etime..' .. etime)
|
ngx.log(ngx.ERR, 'sign...' .. sign .. ' etime..' .. etime)
|
||||||
local upt = string.sub(sign, 13, 13 + 7) .. etime
|
local upt = string.sub(sign, 13, 13 + 7) .. etime
|
||||||
ngx.say(upt)
|
ngx.say(upt)
|
||||||
}
|
end
|
||||||
|
|
||||||
return _M
|
return _M
|
||||||
Reference in New Issue
Block a user