Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evalor committed Aug 19, 2018
1 parent 9939a86 commit 5442f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VerifyCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function DrawCode($Code = null)
// 输出验证码结果集
$this->temp = rtrim(str_replace('\\', '/', $this->temp), '/') . '/';
mt_srand();
$filePath = $this->temp . date('Y-m-d H:i:s') . rand(1000,9999) .MIME::getExtensionName($this->mime);
$filePath = $this->temp . date('YmdHis') . rand(1000,9999) .'.'.MIME::getExtensionName($this->mime);
$func = 'image' . MIME::getExtensionName($this->mime);
$func($this->imInstance, $filePath);
imagedestroy($this->imInstance);
Expand Down

0 comments on commit 5442f02

Please sign in to comment.