Skip to content

Commit 2cd43f2

Browse files
committed
持久化参数不相互依赖
1 parent 34fc0e5 commit 2cd43f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiniu/rs.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ public function Token($mac) // => $token
8484
if (!empty($this->EndUser)) {
8585
$policy['endUser'] = $this->EndUser;
8686
}
87-
if (!empty($this->PersistentOps) && !empty($this->PersistentNotifyUrl)) {
87+
if (!empty($this->PersistentOps)) {
8888
$policy['persistentOps'] = $this->PersistentOps;
89+
}
90+
if (!empty($this->PersistentNotifyUrl)) {
8991
$policy['persistentNotifyUrl'] = $this->PersistentNotifyUrl;
9092
}
9193

0 commit comments

Comments
 (0)