diff --git a/SrcJyAliPublic.js b/SrcJyAliPublic.js index ff2f31bf..fe2ebb35 100644 --- a/SrcJyAliPublic.js +++ b/SrcJyAliPublic.js @@ -62,6 +62,9 @@ if (alitoken) { userinfo = JSON.parse(request('https://auth.aliyundrive.com/v2/account/token', { headers: headers, body: { "refresh_token": alitoken, "grant_type": "refresh_token" }, method: 'POST', timeout: 3000 })); storage0.putMyVar('aliuserinfo', userinfo); putMyVar('userinfoChecktime', nowtime + 'time'); + alistconfig.alitoken = userinfo.refresh_token; + alistData.config = alistconfig; + writeFile(alistfile, JSON.stringify(alistData)); } }