v2.9.10
1. 不缓存泰版搜索及字幕
2. 删除无意义空格
pull/6/head
david082321 4 years ago
parent ab86efd417
commit f2ccdee75d

@ -6,7 +6,7 @@
## 下载:
* [下载(GitHub) v2.9.8](https://github.com/david082321/BiliRoaming-PHP-Server/raw/main/Server_v2.9.8.zip)
* [下载(GitHub) v2.9.10](https://github.com/david082321/BiliRoaming-PHP-Server/raw/main/Server_v2.9.10.zip)
## 用法:
@ -48,6 +48,8 @@
rewrite "^/pgc/player/api/playurl?(.*)$" /pgc/player/api/playurl/index.php?$1 last;
rewrite "^/pgc/player/web/playurl?(.*)$" /pgc/player/web/playurl/index.php?$1 last;
rewrite "^/intl/gateway/v2/ogv/playurl?(.*)$" /intl/gateway/v2/ogv/playurl/index.php?$1 last;
rewrite "^/intl/gateway/v2/app/search/type?(.*)$" /intl/gateway/v2/app/search/type/index.php?$1 last;

@ -1,7 +1,7 @@
<?php
// 防止外部破解
define('SYSTEM', TRUE);
define('VERSION', '2.9.9');
define('VERSION', '2.9.10');
// 加上json的Header
header('Content-Type: application/json; charset=utf-8');
// 加载配置
@ -58,12 +58,16 @@ if ($path!="/intl/gateway/v2/app/search/type" && $path!="/intl/gateway/v2/app/su
}
// 获取缓存
if (SAVE_CACHE==1) {
if ($path=="/intl/gateway/v2/app/search/type" || $path=="/intl/gateway/v2/app/subtitle") {
// 不缓存
}else{
include ("cache.php");
$cache = get_cache();
if ($cache != "") {
exit($cache);
}
}
}
// 指定ip回源
if (IP_RESOLVE==1) {
$host = $hosts[array_rand($hosts)];
@ -79,8 +83,12 @@ if (IP_RESOLVE==1) {
print($output);
// 写入缓存
if (SAVE_CACHE==1) {
if ($path=="/intl/gateway/v2/app/search/type" || $path=="/intl/gateway/v2/app/subtitle") {
// 不缓存
}else{
write_cache();
}
}
function get_webpage($url,$host="",$ip=""){
$ch = curl_init();

Loading…
Cancel
Save