fix: access_token be an Array

pull/187/head
qkqpttgf 2021-01-15 19:27:36 +08:00 committed by GitHub
parent 27ec89e172
commit 4d83358ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -7,9 +7,7 @@ class Sharelink extends Onedrive {
$this->disktag = $tag; $this->disktag = $tag;
$this->redirect_uri = 'https://scfonedrive.github.io'; $this->redirect_uri = 'https://scfonedrive.github.io';
$this->api_url = getConfig('shareapiurl', $tag); $this->api_url = getConfig('shareapiurl', $tag);
$res = $this->get_access_token(1);
$this->access_token = $this->get_access_token(1);
//$this->ext_api_url = '/me/drive/root'; //$this->ext_api_url = '/me/drive/root';
$this->DownurlStrName = '@content.downloadUrl'; $this->DownurlStrName = '@content.downloadUrl';
} }
@ -55,6 +53,6 @@ class Sharelink extends Onedrive {
//if (getConfig('sharecookie', $this->disktag)!=$this->sharecookie) $tmp1['sharecookie'] = $this->sharecookie; //if (getConfig('sharecookie', $this->disktag)!=$this->sharecookie) $tmp1['sharecookie'] = $this->sharecookie;
if (!!$tmp1) setConfig($tmp1); if (!!$tmp1) setConfig($tmp1);
} }
return $this->access_token; return true;
} }
} }