test_lgq/niucloud/vendor/fastknife/ajcaptcha/test/check.php
2024-01-24 17:36:08 +08:00

19 lines
367 B
PHP

<?php
declare(strict_types=1);
require 'autoload.php';
$captchaType = @$_REQUEST['captchaType'];
if (!in_array($captchaType, ['clickWord', 'blockPuzzle'])) {
throw new Exception('缺少参数:captchaType');
}
$controllerName = ucfirst($captchaType) . 'Controller';
require $controllerName . '.php';
$controller = new $controllerName;
$controller->check();