Files
huangjingfen/pro_v3.5.1/vendor/fastknife/ajcaptcha/test/verification.php
panchengyong 7acbf45ff7 new files
2026-03-07 22:29:07 +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();