修复vaptcha验证

This commit is contained in:
xiaodaii
2021-07-20 13:43:34 +08:00
parent 5a0d384c18
commit fc667b7f31
8 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ class Verification
die(' <div class="vaptcha-init-main">
<div class="vaptcha-init-loading">
<a href="/" target="_blank">
<img src="https://cdn.vaptcha.com/vaptcha-loading.gif" />
<img src="https://r.vaptcha.net/public/img/vaptcha-loading.gif" />
</a>
<span class="vaptcha-text">Vaptcha启动中...</span>
</div>
@@ -51,7 +51,7 @@ class Verification
return false;
}
}
$info = json_decode(curl_request('http://api.vaptcha.com/v2/validate', 'id=' . $G['config']['codevid'] . '&secretkey=' . $G['config']['codekey'] . '&token=' . $token . '&ip=' . get_real_ip()), true);
$info = json_decode(curl_request('http://0.vaptcha.com/validate', 'id=' . $G['config']['codevid'] . '&secretkey=' . $G['config']['codekey'] . '&token=' . $token . '&ip=' . get_real_ip()), true);
if ($info['success'] == '1') {
return true;
} else {