From 3ac30c47d06ca0894afc1f059c623226a95c3d0a Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 9 Mar 2023 21:36:19 +0800 Subject: [PATCH] update api url --- app/Module/Extranet.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Module/Extranet.php b/app/Module/Extranet.php index 4b738c184..17c2fe1e2 100644 --- a/app/Module/Extranet.php +++ b/app/Module/Extranet.php @@ -216,7 +216,7 @@ class Extranet $text = "维护中..."; switch ($type) { case "it": - $data = self::curl('https://api.vvhan.com/api/hotlist?type=itNews', 3600); + $data = self::curl('http://vvhan.api.dootask.com/api/hotlist?type=itNews', 3600); if ($data = Base::json2array($data)) { $array = array_map(function ($item, $key) { $content = "

" . ($key + 1) . ". {$item['title']}

"; @@ -233,7 +233,7 @@ class Extranet break; case "36ke": - $data = self::curl('https://api.vvhan.com/api/hotlist?type=36Ke', 3600); + $data = self::curl('http://vvhan.api.dootask.com/api/hotlist?type=36Ke', 3600); if ($data = Base::json2array($data)) { $array = array_map(function ($item, $key) { $content = "

" . ($key + 1) . ". {$item['title']}

"; @@ -250,7 +250,7 @@ class Extranet break; case "60s": - $data = self::curl('https://api.vvhan.com/api/60s?type=json', 3600); + $data = self::curl('http://vvhan.api.dootask.com/api/60s?type=json', 3600); if ($data = Base::json2array($data)) { $array = array_map(function ($item, $key) { return "

" . ($key + 1) . ". {$item}

"; @@ -264,7 +264,7 @@ class Extranet case "joke": $text = "笑话被掏空"; - $data = self::curl('https://api.vvhan.com/api/joke?type=json', 5); + $data = self::curl('http://vvhan.api.dootask.com/api/joke?type=json', 5); if ($data = Base::json2array($data)) { if ($data = trim($data['joke'])) { $text = "开心笑话:{$data}";