fix conditional bug
This commit is contained in:
+2
-2
@@ -18,9 +18,9 @@ function _M.upt(uri)
|
||||
local secret;
|
||||
if (hostname == 'moicen.com') then
|
||||
secret = ngx.var.upt_moicen_secret
|
||||
else if hostname == "alchemy-studio.cn" then
|
||||
elseif hostname == "alchemy-studio.cn" then
|
||||
secret = ngx.var.upt_alchemy_secret
|
||||
else if hostname == "huiwings.cn" then
|
||||
elseif hostname == "huiwings.cn" then
|
||||
secret = ngx.var.upt_huiwings_secret
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user