composer require thefunpower/captcha
<?php
get_captcha_init();
?>
触发验证码
$('#t_captcha_input').trigger('click');
点击验证码后执行JS
$vue->method("after_captcha()","
let f = {};
//或
f.captcha = {
appid:this.form.appid,
ticket:this.form.ticket,
randstr:this.form.randstr,
};
");
验证是POST中的captcha数组 appid
ticket
randstr
get_captcha_check();
tencent_captcha_app_id tencent_captcha_app_key 来源
https://console.cloud.tencent.com/captcha/graphical
tencent_secret_id tencent_secret_key 来源
https://console.cloud.tencent.com/cam/capi
captcha_drive = Tencent
tencent_secret_id =
tencent_secret_key =
tencent_captcha_app_id =
tencent_captcha_app_key =