更新用户链接检查逻辑及重定向功能
This commit is contained in:
@@ -80,10 +80,15 @@ if (isset($getTokenArr['access_token'])) {
|
||||
|
||||
$getUserArr = json_decode($getUserRes, true);
|
||||
|
||||
$checkLink = get_curl("/api?act=check&connect_id=" . $getUserArr['username']);
|
||||
$checkLink = get_curl("/api?act=link&connect_id=" . $getUserArr['username']);
|
||||
|
||||
$getCheckLink = json_decode($checkLink, true);
|
||||
|
||||
if ($getCheckLink['code'] == '0') {
|
||||
$data = $getCheckLink['data'];
|
||||
exit('<script>location.href="/play?account=' . $data['username'] . '&token=' . $data['password'] . '"</script>');
|
||||
}
|
||||
|
||||
} else {
|
||||
$err = json_encode($getTokenArr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user