We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483d7ce commit 0eb541cCopy full SHA for 0eb541c
qiniu/rs.php
@@ -49,6 +49,8 @@ class Qiniu_RS_PutPolicy
49
public $AsyncOps;
50
public $EndUser;
51
public $Expires;
52
+ public $PersistentOps;
53
+ public $PersistentNotifyUrl;
54
55
public function __construct($scope)
56
{
@@ -82,6 +84,10 @@ public function Token($mac) // => $token
82
84
if (!empty($this->EndUser)) {
83
85
$policy['endUser'] = $this->EndUser;
86
}
87
+ if (!empty($this->PersistentOps) && !empty($this->PersistentNotifyUrl)) {
88
+ $policy['persistentOps'] = $this->PersistentOps;
89
+ $policy['persistentNotifyUrl'] = $this->PersistentNotifyUrl;
90
+ }
91
92
$b = json_encode($policy);
93
return Qiniu_SignWithData($mac, $b);
0 commit comments