File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
## CHANGE LOG
2
2
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
+
3
11
### v6.0.0
4
12
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 )
6
14
7
15
- 遵循 [ sdkspec v6.0.2] ( https://github.com/qiniu/sdkspec/tree/v6.0.2 )
8
16
- ` Qiniu_Put/PutFile ` 调整为基于 up.qiniu.com 的协议,extra * PutExtra 参数可以为 nil
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ class Qiniu_RS_GetPolicy
9
9
{
10
10
public $ Expires ;
11
11
12
+ public function __construct ($ expires = 0 )
13
+ {
14
+ $ this ->Expires = $ expires ;
15
+ }
16
+
12
17
public function MakeRequest ($ baseUrl , $ mac ) // => $privateUrl
13
18
{
14
19
$ deadline = $ this ->Expires ;
@@ -50,9 +55,10 @@ class Qiniu_RS_PutPolicy
50
55
public $ EndUser ;
51
56
public $ Expires ;
52
57
53
- public function __construct ($ scope )
58
+ public function __construct ($ scope, $ expires = 0 )
54
59
{
55
60
$ this ->Scope = $ scope ;
61
+ $ this ->Expires = $ expires ;
56
62
}
57
63
58
64
public function Token ($ mac ) // => $token
You can’t perform that action at this time.
0 commit comments