webman迁移

This commit is contained in:
2026-03-18 11:22:12 +08:00
parent dab3b3148f
commit ea77c7b3a1
623 changed files with 38163 additions and 106 deletions

View File

@@ -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 = [];