diff --git a/add_key.php b/add_key.php index 09c48fa..01f7792 100644 --- a/add_key.php +++ b/add_key.php @@ -16,11 +16,11 @@ $sign = @$_GET['sign']; if ($sign != MAGIC_KEY || $sign == "123") { exit("密码错误或未设置密码。"); -} else if ($type == "") { +} elseif ($type == "") { exit("需要参数type (数字):1=登录会员、2=大会员、8=东南亚登录会员、9=东南亚大会员"); -} else if ($key == "") { +} elseif ($key == "") { exit("需要参数access_token"); -} else if ($refresh == "") { +} elseif ($refresh == "") { exit("需要参数refresh_token"); } else { $out = add_mykey($type, $key, $refresh); diff --git a/utils/auth.php b/utils/auth.php index bca9446..eb50c4c 100644 --- a/utils/auth.php +++ b/utils/auth.php @@ -71,12 +71,12 @@ if (ACCESS_KEY != "") { // access_key 存在 if (SAVE_CACHE == 1) { write_cache_blacklist(); // 写入缓存 } - } else if (BLACKLIST_ERROR == 2) { + } elseif (BLACKLIST_ERROR == 2) { block(24, "黑名单服务器连接异常,请联系服务器提供者,或是等待修复。"); - } else if (BLACKLIST_ERROR == 1) { + } elseif (BLACKLIST_ERROR == 1) { if (in_array($uid, $BLACKLIST)) { $is_blacklist = true; - } else if (in_array($uid, $WHITELIST)) { + } elseif (in_array($uid, $WHITELIST)) { $is_whitelist = true; } } diff --git a/utils/fuck_sub.php b/utils/fuck_sub.php index 633c4a7..5e809e5 100644 --- a/utils/fuck_sub.php +++ b/utils/fuck_sub.php @@ -26,7 +26,7 @@ } else { $not_empty_ep = false; } - } else if ($ss_type == "data") { + } elseif ($ss_type == "data") { if (isset($array['data']['sections']['section'][0]['ep_details'])) { // 替换 aid $episodes_items = $array['data']['sections']['section'][0]['ep_details']; diff --git a/utils/refresh_token.php b/utils/refresh_token.php index 2d4e3f9..9409809 100644 --- a/utils/refresh_token.php +++ b/utils/refresh_token.php @@ -14,9 +14,9 @@ if (PROXY_ON == 1) { curl_setopt($ch, CURLOPT_PROXYTYPE, PROXY_TYPE); if (PROXY_IP_CN != ""){ $proxy_ip = PROXY_IP_CN; - } else if (PROXY_IP_HK != ""){ + } elseif (PROXY_IP_HK != ""){ $proxy_ip = PROXY_IP_HK; - } else if (PROXY_IP_TW != ""){ + } elseif (PROXY_IP_TW != ""){ $proxy_ip = PROXY_IP_TW; } else { $proxy_ip = PROXY_IP;