diff --git a/scripts/lib/upt.lua b/scripts/lib/upt.lua index 7e17f4c..ae8198d 100644 --- a/scripts/lib/upt.lua +++ b/scripts/lib/upt.lua @@ -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