Skip to content

Commit

Permalink
Fix PersistentFop to adapt latest qiniu API
Browse files Browse the repository at this point in the history
  • Loading branch information
zgldh authored Oct 12, 2017
1 parent b2587f2 commit 24e183f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/QiniuAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 24e183f

@xinuxZ
Copy link

@xinuxZ xinuxZ commented on 24e183f Oct 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$notifyUrl = is_null($notifyUrl) ? $this->notify_url : $notifyUrl;

Please sign in to comment.