From 24e183f18d0eed071e928064113a0488a80120ea Mon Sep 17 00:00:00 2001 From: zgldh Date: Thu, 12 Oct 2017 17:18:02 +0800 Subject: [PATCH] Fix PersistentFop to adapt latest qiniu API --- src/QiniuAdapter.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/QiniuAdapter.php b/src/QiniuAdapter.php index d017b0f3..0bc02fe0 100755 --- a/src/QiniuAdapter.php +++ b/src/QiniuAdapter.php @@ -604,13 +604,14 @@ public function privateDownloadUrl($path, $settings = 'default') * @param bool $force * @return bool */ - public function persistentFop($path = null, $fops = null, $pipline = null, $force = false, $notify_url = null) + public function persistentFop($path = null, $fops = null, $pipline = null, $force = false, $notifyUrl = null) { $auth = $this->getAuth(); - $pfop = New PersistentFop($auth, $this->bucket, $pipline, is_null($notify_url) ? $this->notify_url : $notify_url, $force); + $pfop = New PersistentFop($auth); - list($id, $error) = $pfop->execute($path, $fops); + $notifyUrl = is_null($notifyUrl) ? $this->notify_url : $notifyUrl + list($id, $error) = $pfop->execute($this->bucket, $path, $fops, $pipline, $notifyUrl, $force); if ($error != null) { $this->logQiniuError($error);