From a7af88b343ca097511ba7b402318f41f656e4556 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sun, 22 Dec 2024 18:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=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=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8fetch=E6=9B=BF=E4=BB=A3curl=E5=B9=B6=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linuxdo.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/linuxdo.php b/linuxdo.php index 71decd8..55e65db 100644 --- a/linuxdo.php +++ b/linuxdo.php @@ -79,16 +79,6 @@ if (isset($getTokenArr['access_token'])) { $getUserRes = get_curl('https://connect.linux.do/api/user', 0, 0, 0, $header); $getUserArr = json_decode($getUserRes, true); - - $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); } @@ -158,6 +148,18 @@ if (isset($getTokenArr['access_token'])) { + + + 授权发生异常: