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 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments