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

Commit

Permalink
v3.0.3
Browse files Browse the repository at this point in the history
1. 尽可能延缓 season 被屏蔽
  • Loading branch information
david082321 committed May 8, 2021
1 parent 0697adf commit 0c93a81
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
// 防止外部破解
define('SYSTEM', TRUE);
define('VERSION', '3.0.2');
define('VERSION', '3.0.3');
// 加载配置
include ("config.php");
// 处理用户传入参数
Expand All @@ -23,13 +23,16 @@
// 判断接口区分app和web缓存
$cache_type = 'app';//默认类型app
if ($path == "/pgc/player/web/playurl") {
$cache_type = 'web';
$cache_type = 'web';
}

$query = $_SERVER['QUERY_STRING'];
$query = str_replace("/&","",$query);
if ($path == "/intl/gateway/v2/ogv/playurl" || $path == "/intl/gateway/v2/ogv/view/app/season") {
if ($path == "/intl/gateway/v2/ogv/playurl") {
$host = CUSTOM_HOST_TH;
} elseif ($path == "/intl/gateway/v2/ogv/view/app/season") {
$host = CUSTOM_HOST_TH;
$query = "appkey=7d089525d3611b1c&autoplay=0&build=1052002&c_locale=&channel=master&lang=&locale=zh_SG&mobi_app=bstar_a&platform=android&s_locale=zh_SG&season_id=".SS_ID."&sim_code=&spmid=&ts=".TS;
} elseif ($path == "/intl/gateway/v2/app/search/type" || $path == "/intl/gateway/v2/app/subtitle") {
$host = CUSTOM_HOST_SUB;
} elseif ($path == "/pgc/player/api/playurl" || $path == "/pgc/player/web/playurl") {
Expand Down

0 comments on commit 0c93a81

Please sign in to comment.