fix bug: access token be 1

This commit is contained in:
root
2021-01-16 11:28:19 +08:00
parent 15a7ea192a
commit b44f15f141
6 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ class SharepointCN 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->access_token = getcache('access_token', $tag);
if (!$this->access_token) $this->access_token = $this->get_access_token(getConfig('refresh_token', $tag));
$res = $this->get_access_token(getConfig('refresh_token', $tag));
$this->client_secret = urlencode($this->client_secret);
$this->scope = urlencode($this->scope);