From 90978a0f7ba327c12f147be7d0d128b728368961 Mon Sep 17 00:00:00 2001 From: haptear Date: Tue, 17 May 2022 14:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0ksjsb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ks/ksjsb.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ks/ksjsb.js b/ks/ksjsb.js index 131490f..770eb90 100644 --- a/ks/ksjsb.js +++ b/ks/ksjsb.js @@ -16,12 +16,11 @@ let res, class ksUser { constructor(cookie) { let api_st = cookie.match(/(kuaishou.api_st=[\w\-]+)/)[1] + ';'; + let did = cookie.match(/(did=[\w\-]+)/)[1] + ';'; this.index = ++index; this.cookie = - 'kpn=NEBULA; kpf=ANDROID_PHONE; did=ANDROID_' + - randomString(16) + - '; ver=9.10; appver=9.10.40.2474; language=zh-cn; countryCode=CN; sys=ANDROID_5.1; client_key=2ac2a76d; ' + + 'kpn=NEBULA; kpf=ANDROID_PHONE; '+did+' ver=9.10; appver=9.10.40.2474; language=zh-cn; countryCode=CN; sys=ANDROID_5.1; client_key=2ac2a76d; ' + api_st; this.name = this.index; this.valid = false; @@ -175,7 +174,7 @@ class ksUser { } } -/* //开箱子,1金币懒得搞 + //开箱子,1金币懒得搞 async openBox(_0x412555) { let _0x513362 = 'https://nebula.kuaishou.com/rest/n/nebula/box/explore?isOpen=' + @@ -221,7 +220,7 @@ class ksUser { : console.log( '🎉' + this.name + '=>|查询宝箱状态失败:' + _0x15220b.error_msg ); - } */ + } @@ -378,7 +377,7 @@ class ksUser { console.log('\n=========== 🎉' + u.name + ' 🎉==========='); await u.getSignInfo(); await $.wait(200); - //await u.openBox(false); + await u.openBox(false); } console.log('\n============== 🎉账户情况🎉 =============='); for (let u of CurrentUser) {