From 918a5253b256a77e811f059c1d42ab1e7206bf69 Mon Sep 17 00:00:00 2001 From: Ying Date: Tue, 18 Jul 2023 10:13:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DHTTP=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/system/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/system/Plugin.php b/app/admin/controller/system/Plugin.php index 33c29d9..54218e5 100644 --- a/app/admin/controller/system/Plugin.php +++ b/app/admin/controller/system/Plugin.php @@ -354,7 +354,7 @@ class Plugin extends AdminController $url = $body['data']['url']; } if (!empty($url) && stristr($url, 'download')) { - $content = Http::get($url); + $content = file_get_contents($url); $filePath = plugin_path() . $name . '.zip'; write_file($filePath, $content); } else {