Skip to content

Commit

Permalink
修复文件重复使用错误
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklin committed Mar 14, 2019
1 parent 4b30cce commit a302a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
test/vendor/
test/composer.lock
test/composer.json
.idea/
2 changes: 1 addition & 1 deletion src/Tool/VirusArtists.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a302a7e

Please sign in to comment.