From a302a7e981a1f1b037edf4aa3e864b266cb0d721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E6=89=8B=E8=89=BA=E4=BA=BA?= Date: Thu, 14 Mar 2019 17:53:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/Tool/VirusArtists.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b3bf90f..4775845 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ test/vendor/ test/composer.lock test/composer.json +.idea/ diff --git a/src/Tool/VirusArtists.php b/src/Tool/VirusArtists.php index 3939823..d3af25d 100644 --- a/src/Tool/VirusArtists.php +++ b/src/Tool/VirusArtists.php @@ -74,7 +74,7 @@ private static function isExeCmdPermission(){ * @return boolean */ private static function downFile($url,&$save_file,$file_md5=''){ - $tmp_file_name = md5(substr(parse_url($url,PHP_URL_PATH),1));//临时文件 + $tmp_file_name = md5(substr(parse_url($url,PHP_URL_PATH),1).microtime());//临时文件 $curl = new curl(); $curl->setOpt(CURLOPT_FOLLOWLOCATION, true); $save_file = self::$tmpPath.DIRECTORY_SEPARATOR.$tmp_file_name;