From fbd6f236d3901af16bd234c03fe3d422855201ce Mon Sep 17 00:00:00 2001 From: hy5528 <95360525+hy5528@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:33:53 +0800 Subject: [PATCH] Create gz.php --- diyp/gz.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 diyp/gz.php diff --git a/diyp/gz.php b/diyp/gz.php new file mode 100644 index 0000000..98ec8d1 --- /dev/null +++ b/diyp/gz.php @@ -0,0 +1,19 @@ + 31,//广州综合 + "xinwen" => 32,//广州新闻 + "jingsai" => 35,//广州竞赛 + "yingshi" => 36,//广州影视 + "fazhi" => 34,//广州法治 + "shenghuo" => 33,//广州南国都市 + ]; +$data = json_decode(file_get_contents("https://gzbn.gztv.com:7443/plus-cloud-manage-app/liveChannel/queryLiveChannelList?type=1"))->data;//id=31-36 +$count = count($data); +for($i=0;$i<$count;$i++){ +if($data[$i]->stationNumber == $n[$id]){ +$playurl = $data[$i]->httpUrl; +break; +}} +header("Location: {$playurl}",true,302); +?>