From 239bec4700b56e27a8f8ba52b3032d225c633586 Mon Sep 17 00:00:00 2001 From: Chaim Date: Sun, 7 Jun 2020 20:20:00 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=E6=8A=96=E9=9F=B3?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/StorageService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/StorageService.php b/src/service/StorageService.php index db7ded8..9411d0e 100644 --- a/src/service/StorageService.php +++ b/src/service/StorageService.php @@ -70,8 +70,8 @@ class StorageService extends Service if (empty($this->path)) $this->getConfig(); // 判断文件夹是否存在 is_dir($this->path) or mkdir($this->path, 0777, true); - $return_content = $this->http_get_data("{$this->path}{$name}"); - $fp = @fopen($name, "a"); //将文件绑定到流 + $return_content = $this->http_get_data($this->remotely); + $fp = @fopen("{$this->path}{$name}", "a"); //将文件绑定到流 fwrite($fp, $return_content); //写入文件 return [ 'file_name' => $name,