Refine code

pull/39/head v4.5.0
david082321 2 years ago committed by GitHub
parent 064ee9408a
commit c9ff4ae623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

@ -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;
}
}

@ -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'];

@ -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;

Loading…
Cancel
Save