From f993264e91e6004f08374ccfde4d65512f2eb3cd Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:15:01 +0800 Subject: [PATCH] fix: sharepoint change to another sharepoint --- disk/Onedrive.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index 6d56419..de477a3 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -806,8 +806,9 @@ class Onedrive { $sharepointname = $tmp[1]; } $tmp = splitlast($tmp[0], '/'); - if (getConfig('Driver', $this->disktag)=='Onedrive') $url = 'https://graph.microsoft.com/v1.0/sites/root:/' . $tmp[1] . '/' . $sharepointname; - if (getConfig('Driver', $this->disktag)=='OnedriveCN') $url = 'https://microsoftgraph.chinacloudapi.cn/v1.0/sites/root:/' . $tmp[1] . '/' . $sharepointname; + //if (getConfig('Driver', $this->disktag)=='Onedrive') $url = 'https://graph.microsoft.com/v1.0/sites/root:/' . $tmp[1] . '/' . $sharepointname; + //if (getConfig('Driver', $this->disktag)=='OnedriveCN') $url = 'https://microsoftgraph.chinacloudapi.cn/v1.0/sites/root:/' . $tmp[1] . '/' . $sharepointname; + $url = $this->api_url . '/sites/root:/' . $tmp[1] . '/' . $sharepointname; $i=0; $response = [];