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 e4107db commit 37382e7Copy full SHA for 37382e7
qiniu/rs.php
@@ -9,6 +9,11 @@ class Qiniu_RS_GetPolicy
9
{
10
public $Expires;
11
12
+ public function __construct($expires = 0)
13
+ {
14
+ $this->Expires = $expires;
15
+ }
16
+
17
public function MakeRequest($baseUrl, $mac) // => $privateUrl
18
19
$deadline = $this->Expires;
@@ -50,9 +55,10 @@ class Qiniu_RS_PutPolicy
50
55
public $EndUser;
51
56
52
57
53
- public function __construct($scope)
58
+ public function __construct($scope, $expires = 0)
54
59
60
$this->Scope = $scope;
61
62
}
63
64
public function Token($mac) // => $token
0 commit comments