From d4d4f0ee8815fa80580f190972dcb10f2bf39e6e Mon Sep 17 00:00:00 2001 From: Bigsk Date: Wed, 8 Apr 2020 08:47:54 +0800 Subject: [PATCH] update api.php. --- api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index b0763a1..5a279ed 100644 --- a/api.php +++ b/api.php @@ -8,8 +8,8 @@ $stream_opts = [ "verify_peer_name"=>false, ] ]; //读取API JSON并转为数组 -$teamjson=file_get_contents("https://stats.foldingathome.org/api/team/".$_GET['teamid'],false, stream_context_create($stream_opts)); -$donorjson=file_get_contents("https://stats.foldingathome.org/api/donor/".$_GET['donor'],false, stream_context_create($stream_opts)); +$teamjson=file_get_contents("https://api.ghink.net/fah/json/team/?teamid=".$_GET['teamid'],false, stream_context_create($stream_opts)); +$donorjson=file_get_contents("https://api.ghink.net/fah/json/donor/?donor=".$_GET['donor'],false, stream_context_create($stream_opts)); $team=json_decode($teamjson, true); $donor=json_decode($donorjson, true); //---------------------------------------------------------------------//