From b06bee1b0a1e1860cfbcb0d090f211c2e23870b8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 6 Jun 2016 22:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E9=BB=98=E8=AE=A4=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=9A=84=E6=97=A5=E6=9C=9F=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/File.php b/library/think/File.php index 580cb7dd..fc888b10 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -151,7 +151,7 @@ class File extends SplFileObject $savename = substr($sha1, 0, 2) . DS . substr($sha1, 2); break; case 'date': - $savename = date('Y-m-d') . DS . md5(microtime(true)); + $savename = date('Ymd') . DS . md5(microtime(true)); break; default: $savename = call_user_func($this->rule);