From 34a6285ba22d02de6be6528679dd3477d077d90c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 19 May 2016 11:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88File=E7=B1=BB=E7=9A=84uniqid?= =?UTF-8?q?=E8=A7=84=E5=88=99=20=E6=94=B9=E4=B8=BA=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/File.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/think/File.php b/library/think/File.php index c772d8c7..c691603f 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -123,9 +123,6 @@ class File extends SplFileObject $savename = call_user_func_array($this->rule, [$this]); } else { switch ($this->rule) { - case 'uniqid': - $savename = uniqid(); - break; case 'md5': $md5 = md5_file($this->getRealPath()); $savename = substr($md5, 0, 2) . DS . substr($md5, 2);