修复了一些问题

This commit is contained in:
kate522 committed 2026-08-25 20:15:55 +08:00
1 parent c484ee6ef3
commit e877ceb560
28 files changed
+565 -535

No files matched your search

+9 -9
View File
@@ -1,11 +1,11 @@
function CaptchaInit() {
var _mode = $('[machine-verification]');
var _mode = jQuery('[machine-verification]');
var mode = _mode.attr('machine-verification');
var _body = $('body');
var _body = jQuery('body');
window.captcha = {};
function get_img(_this) {
$.ajax({
jQuery.ajax({
url: _win.uri + '/action/captcha.php',
data: {
type: 'image',
@@ -18,13 +18,13 @@ function CaptchaInit() {
switch (mode) {
case 'image':
var _code = $('.imagecaptcha');
var _code = jQuery('.imagecaptcha');
_code.each(function () {
get_img($(this));
get_img(jQuery(this));
});
_body.on('click', '.imagecaptcha', function () {
get_img($(this));
get_img(jQuery(this));
});
break;
@@ -34,7 +34,7 @@ function CaptchaInit() {
break;
case 'tcaptcha':
var $btn = $('#TencentCaptcha.aksrt-tcaptcha');
var $btn = jQuery('#TencentCaptcha.aksrt-tcaptcha');
var appid = _mode.attr('tcaptcha-id');
if (!$btn.length) {
_body.append('<div class="hide aksrt-tcaptcha" id="TencentCaptcha" data-appid="' + appid + '" data-cbfn="TCaptchaOK" data-biz-state=""></div>');
@@ -79,12 +79,12 @@ function CaptchaOpen(_this, mode) {
function TCaptchaOpen(_this) {
window.captcha._this = _this;
tbquire(['tcaptcha-sdk'], function () {
$('#TencentCaptcha.aksrt-tcaptcha').click();
jQuery('#TencentCaptcha.aksrt-tcaptcha').click();
});
}
function GeetestOpenInit(open) {
var _mode = $('[machine-verification]');
var _mode = jQuery('[machine-verification]');
if (window.GeetestCaptcha) {
open && window.GeetestCaptcha.showCaptcha();
return;