From c186cee4d34098f648e7a61eb211716a2ed50638 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 28 Jan 2021 23:29:40 +0800 Subject: [PATCH] try fix siit 404 --- disk/Onedrive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index ed2cf7f..99e8def 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -525,7 +525,7 @@ class Onedrive { $api = $this->api_url . '/me/followedSites'; $arr = curl('GET', $api, '', [ 'Authorization' => 'Bearer ' . $this->access_token ]); - if (!($arr['stat']==200||$arr['stat']==403||$arr['stat']==400)) return message($arr['stat'] . json_encode(json_decode($arr['body']), JSON_PRETTY_PRINT), 'Get followedSites', $arr['stat']); + if (!($arr['stat']==200||$arr['stat']==403||$arr['stat']==400||$arr['stat']==404)) return message($arr['stat'] . json_encode(json_decode($arr['body']), JSON_PRETTY_PRINT), 'Get followedSites', $arr['stat']); error_log1($arr['body']); $sites = json_decode($arr['body'], true)['value'];