腾讯云图形验证
class indexController extends Mb{
public function index(){
$ip = t('ip')->getIp();//获取客户端IP
$aid = '';
$AppSecretKey = '';
$TCaptcha = t('TCaptcha',$aid,$AppSecretKey);
$res = $TCaptcha->verify($_GET['ticket'],$_GET['randstr'],$ip);//验证验证码
if($res){
echo '验证成功';
}else{
echo '验证失败:'.$TCaptcha->error;
}
}
}可以赞助并支持下作者哦,谢谢!