From 5560333e34308e16a61b995af2b8644ea9bd9b12 Mon Sep 17 00:00:00 2001 From: deepseath Date: Sat, 3 Jan 2026 11:26:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3php8.5=E4=B8=A5=E6=A0=BC?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 66e7c9df..bdd0ff72 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -207,7 +207,7 @@ public static function __callStatic(string $method, array $arguments) return app(static::class)->appPath; case 'getappspace': return app(static::class)->appSpace; - case 'getapppackage'; + case 'getapppackage': return app(static::class)->package; default: $class = basename(str_replace('\\', '/', static::class)); From 49a6d8a77ccb6e3cb62e7b9461f42100929edc79 Mon Sep 17 00:00:00 2001 From: deepseath Date: Sat, 3 Jan 2026 11:26:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3php8.0.0+=E5=B7=B2?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E6=94=BE=E5=BC=83=E7=9A=84=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8Cphp8.5=E5=BD=BB=E5=BA=95=E5=BA=9F=E5=BC=83=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/CaptchaService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/service/CaptchaService.php b/src/service/CaptchaService.php index bceb7fee..c2202044 100644 --- a/src/service/CaptchaService.php +++ b/src/service/CaptchaService.php @@ -152,7 +152,9 @@ private function _image(): string imagepng($img); $data = ob_get_contents(); ob_end_clean(); - imagedestroy($img); + if (version_compare(PHP_VERSION, '8.0.0', '<')) { + imagedestroy($img); + } return base64_encode($data); }