Commit 6af406c4 by 冷斌

fix bug

parent cd020f3d
...@@ -9,7 +9,8 @@ class QiniuStorage { ...@@ -9,7 +9,8 @@ class QiniuStorage {
public $timeout = ''; public $timeout = '';
public function __construct($config){ public function __construct($config){
$this->sk = $config['secretKey']; echo 1;die;
$this->sk = $config['secretKey'];
$this->ak = $config['accessKey']; $this->ak = $config['accessKey'];
$this->domain = $config['domain']; $this->domain = $config['domain'];
$this->bucket = $config['bucket']; $this->bucket = $config['bucket'];
...@@ -41,7 +42,7 @@ class QiniuStorage { ...@@ -41,7 +42,7 @@ class QiniuStorage {
} }
return self::sign($this->sk, $this->ak, $access); return self::sign($this->sk, $this->ak, $access);
} }
public function privateDownloadUrl($baseUrl, $expires = 3600) public function privateDownloadUrl($baseUrl, $expires = 3600)
{ {
$deadline = time() + $expires; $deadline = time() + $expires;
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
public $timeout = ''; public $timeout = '';
public function __construct($config){ public function __construct($config){
echo 1;die;
$this->sk = $config['secretKey']; $this->sk = $config['secretKey'];
$this->ak = $config['accessKey']; $this->ak = $config['accessKey'];
$this->domain = $config['domain']; $this->domain = $config['domain'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment