From 1fa502724d5c8bab3db24e2d669ddacb85a00208 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Sat, 6 May 2023 12:48:26 +0800 Subject: [PATCH] Update dwnc.js --- dwnc.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dwnc.js b/dwnc.js index f196075..5b0767c 100644 --- a/dwnc.js +++ b/dwnc.js @@ -105,6 +105,7 @@ class UserInfo { this.SK = str.split('&')[1]; this.shumeiId = str.split('&')[2]; this.uuid = str.split('&')[3]; + this.deviceId = str.split('&')[3]; this.shareCode = null this.hours = local_hours(); this.ckStatus = null @@ -118,10 +119,10 @@ class UserInfo { 'ua': ua, 'deviceTrait': deviceTrait, 'channel': channel, - 'SK': SK, - 'shumeiId': shumeiId, - 'uuid': uuid, - 'deviceId': deviceId, + 'SK': this.SK, + 'shumeiId': this.shumeiId, + 'uuid': this.uuid, + 'deviceId': this.deviceId, 'User-Agent': UserAgent }; this.headersGet = { @@ -130,10 +131,10 @@ class UserInfo { 'ua': ua, 'deviceTrait': deviceTrait, 'channel': channel, - 'SK': SK, - 'shumeiId': shumeiId, - 'uuid': uuid, - 'deviceId': deviceId, + 'SK': this.SK, + 'shumeiId': this.shumeiId, + 'uuid': this.uuid, + 'deviceId': this.deviceId, 'User-Agent': UserAgent }