diff --git a/linuxdo.php b/linuxdo.php index 09ed55f..232b200 100644 --- a/linuxdo.php +++ b/linuxdo.php @@ -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(''); + } + } else { $err = json_encode($getTokenArr); }