webman迁移
This commit is contained in:
@@ -143,7 +143,7 @@ class Captcha
|
||||
imagecolorallocate($this->image, $this->bg[0], $this->bg[1], $this->bg[2]);
|
||||
|
||||
$this->color = imagecolorallocate($this->image, mt_rand(1, 150), mt_rand(1, 150), mt_rand(1, 150));
|
||||
$ttfPath = public_path() . 'static' . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR . ($this->useZh ? 'zhttfs' : 'ttfs') . DIRECTORY_SEPARATOR;
|
||||
$ttfPath = public_path('static' . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR . ($this->useZh ? 'zhttfs' : 'ttfs') . DIRECTORY_SEPARATOR);
|
||||
|
||||
if (empty($this->fontTtf)) {
|
||||
$dir = dir($ttfPath);
|
||||
@@ -270,7 +270,7 @@ class Captcha
|
||||
|
||||
private function background(): void
|
||||
{
|
||||
$path = Filesystem::fsFit(public_path() . 'static/images/captcha/image/');
|
||||
$path = Filesystem::fsFit(public_path('static/images/captcha/image/'));
|
||||
$dir = dir($path);
|
||||
|
||||
$bgs = [];
|
||||
|
||||
Reference in New Issue
Block a user