更新 'SrcJyAliPublic.js'

master
src48597962 1 year ago
parent 9a33c61841
commit 7b55b6224a
  1. 2
      SrcJyAliPublic.js

@ -98,7 +98,7 @@ if (alitoken) {
function getUserInfo() {
let account = JSON.parse(request('https://auth.aliyundrive.com/v2/account/token', { headers: headers, body: { "refresh_token": alitoken, "grant_type": "refresh_token" }, method: 'POST', timeout: 3000 }));
if(account.refresh_token){
headers['authorization'] = 'Bearer ' + userinfo.access_token;
headers['authorization'] = 'Bearer ' + account.access_token;
let user = JSON.parse(request('https://user.aliyundrive.com/v2/user/get', { headers: headers, body: {}, method: 'POST', timeout: 3000 }));
delete headers['authorization'];
account.resource_drive_id = user.resource_drive_id;

Loading…
Cancel
Save