dever 6 năm trước cách đây
mục cha
commit
52659dc8d0
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/Store/Qiniu.php

+ 2 - 1
src/Store/Qiniu.php

@@ -34,7 +34,8 @@ class Qiniu extends Core implements Config
 
         $file = $this->file;
         if ($this->config['cover'] == 3) {
-            $file = false;
+            $this->name($this->output['file'] . '_' . microtime() . '_' . rand(0,1000))->file();
+            $file = $this->file;
         }
         list($ret, $err) = $upload->putFile($token, $file, $this->data['file']['tmp_name'], $param = null);