From 4b425ee670869357d9391ce88b61820f5248bcd0 Mon Sep 17 00:00:00 2001 From: david082321 Date: Sat, 25 Sep 2021 21:32:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20search=20=E4=BC=9A?= =?UTF-8?q?=E8=A2=AB=E7=BC=93=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index a29719d..ce13df4 100644 --- a/index.php +++ b/index.php @@ -38,9 +38,9 @@ } elseif ($path == "/pgc/player/api/playurl" || $path == "/pgc/player/web/playurl" || $path == "/x/web-interface/search/type") { if (AREA=="cn") { $host = CUSTOM_HOST_CN; - } else if (AREA=="hk") { + } elseif (AREA=="hk") { $host = CUSTOM_HOST_HK; - } else if (AREA=="tw") { + } elseif (AREA=="tw") { $host = CUSTOM_HOST_TW; } else { $host = CUSTOM_HOST_DEFAULT; @@ -75,9 +75,11 @@ } // 判断 playurl $playurl = 0; -if ($path != "/intl/gateway/v2/app/search/type" && $path != "/intl/gateway/v2/app/subtitle" && $path != "/intl/gateway/v2/ogv/view/app/season") { +if ($path == "/x/v2/search/type" || $path == "/x/web-interface/search/type") { + $playurl = 3; +} elseif ($path != "/intl/gateway/v2/app/search/type" && $path != "/intl/gateway/v2/app/subtitle" && $path != "/intl/gateway/v2/ogv/view/app/season") { $playurl = 1; -} else if ($path == "/intl/gateway/v2/ogv/view/app/season") { +} elseif ($path == "/intl/gateway/v2/ogv/view/app/season") { $playurl = 2; } // 鉴权 @@ -98,7 +100,7 @@ exit($cache); } // 获取缓存 (东南亚season) -} else if (SAVE_CACHE == 1 && $playurl == 2) { +} elseif (SAVE_CACHE == 1 && $playurl == 2) { include ("cache_season.php"); $cache = get_cache_season(); if ($cache != "") {