From 201109bbc308a7c8aa6f9d8593106616ec08f1e1 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 9 Jan 2019 10:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0rand?= =?UTF-8?q?=E8=B6=85=E5=87=BA=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/Uploader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/base/Uploader.php b/extend/base/Uploader.php index 48f40d1d1..bfb445572 100755 --- a/extend/base/Uploader.php +++ b/extend/base/Uploader.php @@ -311,7 +311,7 @@ class Uploader $format = str_replace("{filename}", $oriName, $format); //替换随机字符串 - $randNum = rand(1, 10000000000) . rand(1, 10000000000); + $randNum = rand(1, 1000) . rand(1, 1000) . rand(1, 1000); if (preg_match("/\{rand\:([\d]*)\}/i", $format, $matches)) { $format = preg_replace("/\{rand\:[\d]*\}/i", substr($randNum, 0, $matches[1]), $format); }