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)) 即可以判断密匙正确性