dever 4 năm trước cách đây
mục cha
commit
34568b9e4f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lib/View/Qiniu.php

+ 2 - 2
lib/View/Qiniu.php

@@ -9,7 +9,7 @@ class Qiniu
     private $client;
     private $token;
 
-	public function token($config, $upload, $file = false)
+	public function token($config, $upload, $file = null)
     {
         $cur = time();
         //if (!$config['token'] || ($config['token_endtime'] && $cur > $config['token_endtime'])) {
@@ -46,7 +46,7 @@ class Qiniu
 	}
 
     # 连接
-    public function connect($config, $upload, $file = false)
+    public function connect($config, $upload, $file = null)
     {
         list($type, $token, $domain, $bucket) = $this->token($config, $upload, $file);
         $this->token = $token;