From 13fc29e92009d64e8e458b0ae013cd0f48c4cc91 Mon Sep 17 00:00:00 2001 From: moicen Date: Sun, 7 May 2023 02:12:37 +0800 Subject: [PATCH] fix conditional bug --- scripts/lib/upt.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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