Update dwnc.js

This commit is contained in:
smallfawn 2023-05-07 11:53:14 +08:00 committed by GitHub
parent b899537f46
commit c76e46e648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,11 @@ class UserInfo {
this.index = ++userIdx;
this.XAToken = str.split('&')[0];
this.SK = str.split('&')[1];
if (this.XAToken.indexOf('Bearer') !== -1) {
this.XAToken = this.XAToken.replace('Bearer', '')
} else {
this.XAToken = str.split('&')[0];
}
this.shumeiId = str.split('&')[2];
this.uuid = str.split('&')[3];
this.deviceId = str.split('&')[3];