Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
david082321 committed Oct 12, 2022
1 parent 064ee94 commit c9ff4ae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions add_key.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

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);
Expand Down
6 changes: 3 additions & 3 deletions utils/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion utils/fuck_sub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
4 changes: 2 additions & 2 deletions utils/refresh_token.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
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;
Expand Down

0 comments on commit c9ff4ae

Please sign in to comment.