You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
365 B
19 lines
365 B
9 months ago
|
<?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->get();
|