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

20 lines
375 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->verification();