更新用户链接检查逻辑及重定向功能

This commit is contained in:
2024-12-22 17:12:03 +08:00
parent e985da169a
commit 500e54f36b

View File

@@ -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);
}