fix: access_token be an Array

This commit is contained in:
qkqpttgf
2021-01-15 19:27:36 +08:00
committed by GitHub
parent 27ec89e172
commit 4d83358ee1
+3 -5
View File
@@ -7,9 +7,7 @@ class Sharelink extends Onedrive {
$this->disktag = $tag;
$this->redirect_uri = 'https://scfonedrive.github.io';
$this->api_url = getConfig('shareapiurl', $tag);
$this->access_token = $this->get_access_token(1);
$res = $this->get_access_token(1);
//$this->ext_api_url = '/me/drive/root';
$this->DownurlStrName = '@content.downloadUrl';
}
@@ -55,6 +53,6 @@ class Sharelink extends Onedrive {
//if (getConfig('sharecookie', $this->disktag)!=$this->sharecookie) $tmp1['sharecookie'] = $this->sharecookie;
if (!!$tmp1) setConfig($tmp1);
}
return $this->access_token;
return true;
}
}
}