From 5a3d1cf7013173f95635d9b029e3790d962cfbfa Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 15 Jan 2025 10:24:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/v1/Captcha.php | 1 - public/index.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/admin/controller/v1/Captcha.php b/app/admin/controller/v1/Captcha.php index 2c3790b9..91edd478 100644 --- a/app/admin/controller/v1/Captcha.php +++ b/app/admin/controller/v1/Captcha.php @@ -26,7 +26,6 @@ class Captcha // 输出验证码 return success('获取验证码成功!', [ 'token' => $token, - 'code' => $captcha['code'], 'captcha' => $captcha["img"], ]); } diff --git a/public/index.php b/public/index.php index 712fd5e9..e3c0fe90 100644 --- a/public/index.php +++ b/public/index.php @@ -15,7 +15,7 @@ namespace think; require __DIR__ . '/../vendor/autoload.php'; // 执行HTTP应用并响应 -$http = (new App())->setEnvName('local')->http; +$http = (new App())->http; $response = $http->run();