From eec6de93414f6a2a7951d198b2dd4e7572ffce19 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sun, 7 Jul 2024 23:26:21 +0800 Subject: [PATCH] yh --- Application/Admin/Controller/AutoPackController.class.php | 1 + Application/Base/Tool/OssClient.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index 2e9adc6e8..e3ba2ecf9 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -1082,5 +1082,6 @@ class AutoPackController extends Think public function clearPkg() { $client = new ToolOssClient(); + $client->listObjects() } } diff --git a/Application/Base/Tool/OssClient.class.php b/Application/Base/Tool/OssClient.class.php index 5c14ad72c..1a1dfd0a8 100644 --- a/Application/Base/Tool/OssClient.class.php +++ b/Application/Base/Tool/OssClient.class.php @@ -119,7 +119,7 @@ class OssClient implements StorageClient { /** * 删除文件 */ - public function listObjects($deleteFile) + public function listObjects() { $listObject = $this->client->listObjects($this->bucket); var_dump($listObject);