Change CAPTCHA prompt

This commit is contained in:
smallxu038 2024-02-20 00:21:35 +08:00 committed by GitHub
parent 3ccaed5b1e
commit 940b3f46bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,7 +176,7 @@ function siren_robot_comment(){
$response = json_decode($response); $response = json_decode($response);
if ($response->success == false) { if ($response->success == false) {
// reCAPTCHA验证失败 // reCAPTCHA验证失败
siren_ajax_comment_err('reCAPTCHA验证失败。<br>reCAPTCHA verification failed.'); siren_ajax_comment_err('reCAPTCHA验证失败,请刷新页面或验证码。<br>reCAPTCHA verification failed.Please refresh the page or CAPTCHA.');
} }
} else { } else {
siren_ajax_comment_err('上车请刷卡。<br>Please comfirm you are not a robot.'); siren_ajax_comment_err('上车请刷卡。<br>Please comfirm you are not a robot.');
@ -194,7 +194,7 @@ function siren_robot_comment(){
$response = json_decode($response); $response = json_decode($response);
if ($response->success == false || $response->score < akina_option('rescore')) { if ($response->success == false || $response->score < akina_option('rescore')) {
// reCAPTCHA验证失败 // reCAPTCHA验证失败
siren_ajax_comment_err('reCAPTCHA验证失败。<br>reCAPTCHA verification failed.'); siren_ajax_comment_err('reCAPTCHA验证失败,请刷新页面或验证码。<br>reCAPTCHA verification failed.Please refresh the page or CAPTCHA.');
} }
} else { } else {
// 如果没有收到 reCAPTCHA token 或者 token 为空,返回错误消息 // 如果没有收到 reCAPTCHA token 或者 token 为空,返回错误消息