dever hace 6 años
padre
commit
52659dc8d0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);