diff --git a/app/Http/Admin/Controllers/TestController.php b/app/Http/Admin/Controllers/TestController.php index e7c4a5c5..3954d4af 100644 --- a/app/Http/Admin/Controllers/TestController.php +++ b/app/Http/Admin/Controllers/TestController.php @@ -8,9 +8,7 @@ namespace App\Http\Admin\Controllers; use App\Http\Admin\Services\AlipayTest as AlipayTestService; -use App\Http\Admin\Services\Setting as SettingService; use App\Http\Admin\Services\WxpayTest as WxpayTestService; -use App\Services\Captcha as CaptchaService; use App\Services\DingTalkNotice as DingTalkNoticeService; use App\Services\Live as LiveService; use App\Services\Logic\Notice\External\Mail\Test as MailTestService; @@ -152,30 +150,6 @@ class TestController extends Controller } } - /** - * @Post("/captcha", name="admin.test.captcha") - */ - public function captchaAction() - { - $post = $this->request->getPost(); - - $captchaService = new CaptchaService(); - - $result = $captchaService->verify($post['ticket'], $post['rand']); - - if ($result) { - - $settingService = new SettingService(); - - $settingService->updateSettings('captcha', ['enabled' => 1]); - - return $this->jsonSuccess(['msg' => '后台验证成功']); - - } else { - return $this->jsonError(['msg' => '后台验证失败']); - } - } - /** * @Get("/alipay", name="admin.test.alipay") */ diff --git a/app/Http/Admin/Views/setting/site.volt b/app/Http/Admin/Views/setting/site.volt index a8b8388e..f664aa6e 100644 --- a/app/Http/Admin/Views/setting/site.volt +++ b/app/Http/Admin/Views/setting/site.volt @@ -37,7 +37,7 @@
- +
@@ -46,7 +46,7 @@
- +