top-think / think-captcha

thinkphp 验证码类库
Other
115 stars 81 forks source link

Fatal error: Uncaught Error: Class 'Route' not found in vendor\topthink\think-captcha\src\helper.php on line 12 #63

Open kenetkang opened 3 years ago

kenetkang commented 3 years ago

//test.php in test folder require_once DIR.'/../vendor/autoload.php';

use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception;

$mail = new PHPMailer(true);
try {} catch (Exception $e) {}

kenetkang commented 3 years ago
    "php": ">=5.6.0",
    "topthink/framework": "5.1.*",
    "topthink/think-captcha": "2.0.*",
    "phpmailer/phpmailer": "^6.4"
seek-x2y commented 3 years ago

这问题怎么解决的?只能升级TP到6?

jonesshen commented 2 years ago

thinkphp 5.1 可以考虑卸载官方的验证码扩展,安装我这个版本来解决。 地址:https://github.com/jonesshen/think-captcha