From c76e46e648d35f3f2ce11efd26e339e306981bef Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Sun, 7 May 2023 11:53:14 +0800 Subject: [PATCH] Update dwnc.js --- dwnc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dwnc.js b/dwnc.js index 2f96c42..0785b56 100644 --- a/dwnc.js +++ b/dwnc.js @@ -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];