Skip to content
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

Open
Vurliy opened this issue Jun 28, 2020 · 2 comments

Comments

@Vurliy
Copy link

Vurliy commented Jun 28, 2020

indieGala 提取 礼物时 点击刮开按钮是隔行刮开的

@clancy-chao
Copy link
Owner

IndieGala 改了刮KEY 方式,上週買了一包更新測試沒幾下就刮完了
只好用最簡單的模擬點擊刮開、間隔700毫秒
格行刮開應該是響應太慢跳過了,就多點幾下吧..?

@hlhc
Copy link
Contributor

hlhc commented Dec 15, 2020

// 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 handleGetSerialKey(...) have 2s delay, sometimes the last keys hvn't shown in the textbox TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants