Skip to content

Commit 37382e7

Browse files
committed
Update rs.php
1 parent e4107db commit 37382e7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

qiniu/rs.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ class Qiniu_RS_GetPolicy
99
{
1010
public $Expires;
1111

12+
public function __construct($expires = 0)
13+
{
14+
$this->Expires = $expires;
15+
}
16+
1217
public function MakeRequest($baseUrl, $mac) // => $privateUrl
1318
{
1419
$deadline = $this->Expires;
@@ -50,9 +55,10 @@ class Qiniu_RS_PutPolicy
5055
public $EndUser;
5156
public $Expires;
5257

53-
public function __construct($scope)
58+
public function __construct($scope, $expires = 0)
5459
{
5560
$this->Scope = $scope;
61+
$this->Expires = $expires;
5662
}
5763

5864
public function Token($mac) // => $token

0 commit comments

Comments
 (0)