From 599b937f99d5e7e240857f53f826cda0ae21d985 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 28 Mar 2021 16:42:19 +0800 Subject: [PATCH] fix: need Sites scope --- disk/OnedriveCN.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/OnedriveCN.php b/disk/OnedriveCN.php index 8815e25..c777c72 100644 --- a/disk/OnedriveCN.php +++ b/disk/OnedriveCN.php @@ -15,7 +15,7 @@ class OnedriveCN extends Onedrive { } $this->oauth_url = 'https://login.partner.microsoftonline.cn/common/oauth2/v2.0/'; $this->api_url = 'https://microsoftgraph.chinacloudapi.cn/v1.0'; - $this->scope = 'https://microsoftgraph.chinacloudapi.cn/Files.ReadWrite.All offline_access'; + $this->scope = 'https://microsoftgraph.chinacloudapi.cn/Files.ReadWrite.All https://microsoftgraph.chinacloudapi.cn/Sites.ReadWrite.All offline_access'; $res = $this->get_access_token(getConfig('refresh_token', $tag)); $this->client_secret = urlencode($this->client_secret); @@ -23,4 +23,4 @@ class OnedriveCN extends Onedrive { $this->DownurlStrName = '@microsoft.graph.downloadUrl'; $this->ext_api_url = '/me/drive/root'; } -} \ No newline at end of file +}