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

+ 2 - 2
src/Store/Core.php

@@ -2,7 +2,7 @@
 namespace Upload\Src\Store;
 
 use Dever;
-use Dever\String\Helper as String;
+use Dever\String\Helper as Helper;
 use Dever\Loader\Config;
 
 class Core
@@ -189,7 +189,7 @@ class Core
 			$file = base64_decode($this->data['file']);
 			$path = Dever::path($this->base, 'tmp/');
 			$this->data['file'] = array();
-			$this->data['file']['name'] = 'Tmp' . String::rand(8) . md5(microtime() . rand(0,1000)) . '.jpg';
+			$this->data['file']['name'] = 'Tmp' . Helper::rand(8) . md5(microtime() . rand(0,1000)) . '.jpg';
 			$this->data['file']['tmp_name'] = $path . $this->data['file']['name'];
 			file_put_contents($this->data['file']['tmp_name'], $file);
 			$this->data['file']['size'] = filesize($this->data['file']['tmp_name']);