ucenter api/uc.php数据密匙验证

parse_str(authcode($code, 'DECODE', UC_KEY), $get);
	if(time() - $get['time'] > 3600) {
		exit('Authracation has expiried');
	}
	if(empty($get)) {
		exit('Invalid Request');
	}


 

authcode($code, 'DECODE', UC_KEY), $get)

不通过返回空

下面的 if(empty($get)) 即可以判断密匙正确性

转载于:https://my.oschina.net/itxti/blog/261725