rabin 7 年之前
父节点
当前提交
d02156cc63
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Store/Local.php

+ 1 - 1
src/Store/Local.php

@@ -25,7 +25,7 @@ class Local extends Core implements Config
 			# 不覆盖 生成新文件
 			# 不覆盖 生成新文件
 			if (is_file($this->output['file']) && $this->config['cover'] == 3) {
 			if (is_file($this->output['file']) && $this->config['cover'] == 3) {
 				// . microtime() . rand(0,1000)
 				// . microtime() . rand(0,1000)
-				$this->name($this->output['file'])->file();
+				$this->name($this->output['file'] . '_' . microtime() . '_' . rand(0,1000))->file();
 			} else {
 			} else {
 				$file = Dever::load('upload/file-name', array('where_name' => $this->name));
 				$file = Dever::load('upload/file-name', array('where_name' => $this->name));
 			}
 			}