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
View File
@@ -709,6 +709,7 @@ class Aliyundrive {
$this->access_token = $ret['access_token'];
savecache('access_token', $this->access_token, $this->disktag, $ret['expires_in'] - 300);
if (time()>getConfig('token_expires', $this->disktag)) setConfig([ 'refresh_token' => $ret['refresh_token'], 'token_expires' => time()+7*24*60*60 ], $this->disktag);
return true;
}
return true;
}