Skip to content

Commit 5ee3833

Browse files
committed
Merge pull request #10 from qiniu/develop
Release v6.0.1
2 parents 3ce8bd9 + ef5dc9f commit 5ee3833

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
## CHANGE LOG
22

3+
### v6.0.1
4+
5+
2013-07-03 issue [#10](https://github.com/qiniu/api/pull/10)
6+
7+
- new Qiniu_RS_GetPolicy($expires = 0);
8+
- new Qiniu_RS_PutPolicy($scope, $expires = 0);
9+
10+
311
### v6.0.0
412

5-
2013-06-29 issue [#9](https://github.com/qiniu/api/pull/9)
13+
2013-07-02 issue [#9](https://github.com/qiniu/api/pull/9)
614

715
- 遵循 [sdkspec v6.0.2](https://github.com/qiniu/sdkspec/tree/v6.0.2)
816
- `Qiniu_Put/PutFile` 调整为基于 up.qiniu.com 的协议,extra *PutExtra 参数可以为 nil

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)