fix: 修复HTTP传递参数错误
This commit is contained in:
@@ -354,7 +354,7 @@ class Plugin extends AdminController
|
|||||||
$url = $body['data']['url'];
|
$url = $body['data']['url'];
|
||||||
}
|
}
|
||||||
if (!empty($url) && stristr($url, 'download')) {
|
if (!empty($url) && stristr($url, 'download')) {
|
||||||
$content = Http::get($url);
|
$content = file_get_contents($url);
|
||||||
$filePath = plugin_path() . $name . '.zip';
|
$filePath = plugin_path() . $name . '.zip';
|
||||||
write_file($filePath, $content);
|
write_file($filePath, $content);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user