-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indieGala 刮开按钮点击后, 隔行刮开, 需要点击多次才能全部刮开 #27
Comments
IndieGala 改了刮KEY 方式,上週買了一包更新測試沒幾下就刮完了 |
// https://www.indiegala.com/js/view/profile_private.js
function getSerialKey(code, appId, context, withPasscode, t, e){
// controllo passcheck
// ajax seriale
e.preventDefault();
var $this = $(t),
thisText = $this.text(),
$context = $(context);
if ( !getSerialKeyGo ){ return false } // 因為這裡 所以有時候沒刮好就停了
getSerialKeyGo = false;
var dataToSend = {};
dataToSend.code = code;
dataToSend.passcode = '';
dataToSend.app_id = appId;
if ( withPasscode ){
var $passcode = $('.profile-private-page-library-passcode', $context);
dataToSend.passcode = $.trim( $passcode.val() );
if ( !$passcode || !dataToSend.passcode ){
getSerialKeyGo = true;
return
}
}
$this.html( '<i class="fa fa-spin fa-spinner" aria-hidden="true"></i>' )
$.ajax({
type: "POST",
url: burl + '/library/get-serial-key',
headers: {'X-Requested-With': 'XMLHttpRequest'},
data: JSON.stringify( dataToSend ),
dataType: "json",
success: function(responseData){ handleGetSerialKey(responseData, $this, $context) },
error: function(){ handleGetSerialKey({}, $this) }
});
} Update: Because |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
indieGala 提取 礼物时 点击刮开按钮是隔行刮开的
The text was updated successfully, but these errors were encountered: