fix bug: access token be 1
This commit is contained in:
+1
-2
@@ -16,8 +16,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->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);
|
||||
|
||||
Reference in New Issue
Block a user