fix parameter issue
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ function _M.upt(url)
|
|||||||
if string.find(hostname, "moicen.com") then
|
if string.find(hostname, "moicen.com") then
|
||||||
ngx.log(ngx.INFO, 'match moicen.com: ' .. ngx.var.upt_moicen_secret)
|
ngx.log(ngx.INFO, 'match moicen.com: ' .. ngx.var.upt_moicen_secret)
|
||||||
secret = ngx.var.upt_moicen_secret
|
secret = ngx.var.upt_moicen_secret
|
||||||
elseif string.find(hostname, "alchemy-studio.cn", true) then
|
elseif string.find(hostname, "alchemy-studio.cn", 1, true) then
|
||||||
ngx.log(ngx.INFO, 'match alchemy: ' .. ngx.var.upt_alchemy_secret)
|
ngx.log(ngx.INFO, 'match alchemy: ' .. ngx.var.upt_alchemy_secret)
|
||||||
secret = ngx.var.upt_alchemy_secret
|
secret = ngx.var.upt_alchemy_secret
|
||||||
elseif string.find(hostname, "huiwings.cn") then
|
elseif string.find(hostname, "huiwings.cn") then
|
||||||
|
|||||||
Reference in New Issue
Block a user