From 500e54f36b84d1e27ebfa257977dbf406f244d23 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sun, 22 Dec 2024 17:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91=E5=8F=8A=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linuxdo.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }